Module ImportFrom alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body If AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr NameLoad TryFinally body If AttributeLoad NameLoad attr body Pass orelse If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Raise orelse TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Raise orelse Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr finalbody If UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body If Call NameLoad NameLoad body Return Call Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Set NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body If Call NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Return Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad decorator_list
N/A django.db DEFAULT_DB_ALIAS DatabaseError Error ProgrammingError connections django.utils.decorators ContextDecorator TransactionManagementError N/A ProgrammingError N/A N/A 
    This exception is thrown when transaction management is used improperly.
     N/A N/A get_connection N/A N/A using N/A None N/A N/A 
    Get a database connection by name, or the default database connection
    if no name is provided. This is a private API.
     N/A N/A using None N/A N/A using DEFAULT_DB_ALIAS N/A N/A connections N/A using N/A get_autocommit N/A N/A using N/A None N/A N/A 
    Get the autocommit status of the connection.
     N/A N/A N/A N/A get_connection using get_autocommit N/A set_autocommit N/A N/A autocommit using N/A None N/A N/A 
    Set the autocommit status of the connection.
     N/A N/A N/A N/A get_connection using set_autocommit autocommit N/A commit N/A N/A using N/A None N/A N/A 
    Commits a transaction.
     N/A N/A N/A N/A get_connection using commit N/A rollback N/A N/A using N/A None N/A N/A 
    Rolls back a transaction.
     N/A N/A N/A N/A get_connection using rollback N/A savepoint N/A N/A using N/A None N/A N/A 
    Creates a savepoint (if supported and required by the backend) inside the
    current transaction. Returns an identifier for the savepoint that will be
    used for the subsequent rollback or commit.
     N/A N/A N/A N/A get_connection using savepoint N/A savepoint_rollback N/A N/A sid using N/A None N/A N/A 
    Rolls back the most recent savepoint (if one exists). Does nothing if
    savepoints are not supported.
     N/A N/A N/A N/A get_connection using savepoint_rollback sid N/A savepoint_commit N/A N/A sid using N/A None N/A N/A 
    Commits the most recent savepoint (if one exists). Does nothing if
    savepoints are not supported.
     N/A N/A N/A N/A get_connection using savepoint_commit sid N/A clean_savepoints N/A N/A using N/A None N/A N/A 
    Resets the counter used to generate unique savepoint ids in this thread.
     N/A N/A N/A N/A get_connection using clean_savepoints N/A get_rollback N/A N/A using N/A None N/A N/A 
    Gets the "needs rollback" flag -- for *advanced use* only.
     N/A N/A N/A N/A get_connection using get_rollback N/A set_rollback N/A N/A rollback using N/A None N/A N/A 
    Sets or unsets the "needs rollback" flag -- for *advanced use* only.

    When `rollback` is `True`, it triggers a rollback when exiting the
    innermost enclosing atomic block that has `savepoint=True` (that's the
    default). Use this to force a rollback without raising an exception.

    When `rollback` is `False`, it prevents such a rollback. Use this only
    after rolling back to a known-good state! Otherwise, you break the atomic
    block and data corruption may occur.
     N/A N/A N/A N/A get_connection using set_rollback rollback N/A on_commit N/A N/A func using N/A None N/A N/A 
    Register `func` to be called when the current transaction is committed.
    If the current transaction is rolled back, `func` will not be called.
     N/A N/A N/A N/A get_connection using on_commit func N/A Atomic N/A ContextDecorator N/A N/A 
    This class guarantees the atomic execution of a given block.

    An instance can be used either as a decorator or as a context manager.

    When it's used as a decorator, __call__ wraps the execution of the
    decorated function in the instance itself, used as a context manager.

    When it's used as a context manager, __enter__ creates a transaction or a
    savepoint, depending on whether a transaction is already in progress, and
    __exit__ commits the transaction or releases the savepoint on normal exit,
    and rolls back the transaction or to the savepoint on exceptions.

    It's possible to disable the creation of savepoints if the goal is to
    ensure that some code runs within a transaction without creating overhead.

    A stack of savepoints identifiers is maintained as an attribute of the
    connection. None denotes the absence of a savepoint.

    This allows reentrancy even if the same AtomicWrapper is reused. For
    example, it's possible to define `oa = @atomic('other')` and use `@oa` or
    `with oa:` multiple times.

    Since database connections are thread-local, this is thread-safe.

    This is a private API.
     __init__ N/A N/A self using savepoint N/A N/A N/A N/A self using using N/A N/A self savepoint savepoint N/A __enter__ N/A N/A self N/A N/A N/A connection N/A get_connection N/A self using N/A N/A N/A connection in_atomic_block N/A N/A N/A connection commit_on_exit True N/A N/A connection needs_rollback False N/A N/A N/A N/A connection get_autocommit N/A N/A N/A N/A connection features autocommits_when_autocommit_is_off N/A N/A N/A TransactionManagementError Your database backend doesn't behave properly when autocommit is off. Turn it on before using 'atomic'. N/A N/A connection in_atomic_block True N/A N/A connection commit_on_exit False N/A N/A connection in_atomic_block N/A N/A N/A N/A self savepoint N/A N/A connection needs_rollback N/A N/A sid N/A N/A connection savepoint N/A N/A N/A N/A connection savepoint_ids append sid N/A N/A N/A N/A N/A connection savepoint_ids append None N/A N/A N/A N/A connection set_autocommit False force_begin_transaction_with_broken_autocommit True N/A N/A connection in_atomic_block True N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A connection N/A get_connection N/A self using N/A N/A connection savepoint_ids N/A N/A sid N/A N/A N/A connection savepoint_ids pop N/A N/A N/A connection in_atomic_block False N/A N/A N/A N/A connection closed_in_transaction N/A N/A N/A N/A N/A N/A exc_type None N/A N/A connection needs_rollback N/A N/A N/A connection in_atomic_block N/A N/A N/A sid None N/A N/A N/A N/A N/A N/A connection savepoint_commit sid N/A N/A N/A DatabaseError N/A N/A N/A N/A N/A N/A connection savepoint_rollback sid N/A N/A N/A connection savepoint_commit sid N/A N/A N/A Error N/A N/A N/A connection needs_rollback True N/A N/A N/A N/A N/A N/A N/A connection commit N/A N/A N/A DatabaseError N/A N/A N/A N/A N/A N/A connection rollback N/A N/A N/A Error N/A N/A N/A N/A connection close N/A N/A N/A N/A connection needs_rollback False N/A N/A connection in_atomic_block N/A N/A N/A sid None N/A N/A N/A connection needs_rollback True N/A N/A N/A N/A N/A N/A connection savepoint_rollback sid N/A N/A N/A connection savepoint_commit sid N/A N/A N/A Error N/A N/A N/A connection needs_rollback True N/A N/A N/A N/A N/A N/A connection rollback N/A N/A N/A Error N/A N/A N/A N/A connection close N/A N/A N/A N/A connection in_atomic_block N/A N/A N/A connection closed_in_transaction N/A N/A N/A connection connection None N/A N/A N/A N/A connection set_autocommit True N/A N/A N/A N/A N/A connection savepoint_ids N/A N/A connection commit_on_exit N/A N/A N/A connection closed_in_transaction N/A N/A N/A connection connection None N/A N/A N/A connection in_atomic_block False N/A N/A atomic N/A N/A using savepoint N/A None True N/A N/A N/A callable using N/A N/A N/A N/A Atomic DEFAULT_DB_ALIAS savepoint using N/A N/A N/A Atomic using savepoint N/A _non_atomic_requests N/A N/A view using N/A N/A N/A N/A N/A N/A N/A N/A view _non_atomic_requests add using N/A N/A N/A AttributeError N/A N/A N/A view _non_atomic_requests N/A using N/A view N/A non_atomic_requests N/A N/A using N/A None N/A N/A N/A callable using N/A N/A N/A _non_atomic_requests using DEFAULT_DB_ALIAS N/A N/A N/A using None N/A N/A using DEFAULT_DB_ALIAS N/A N/A N/A N/A view N/A N/A _non_atomic_requests view using N/A