'Get the "needs rollback" flag -- for *advanced use* only.'

def get_rollback(self):

    if (not self.in_atomic_block):
        raise TransactionManagementError("The    rollback    flag    doesn't    work    outside    of    an    'atomic'    block.")
    return self.needs_rollback
