Module ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr keyword Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr keyword Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr keyword Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad Str decorator_list
N/A __future__ with_statement django.db connection transaction IntegrityError django.test TransactionTestCase skipUnlessDBFeature models Reporter TransactionContextManagerTests N/A TransactionTestCase N/A create_reporter_and_fail N/A N/A self N/A N/A N/A N/A N/A N/A Reporter objects create first_name Bob last_name Holtzman N/A Exception N/A test_autocommit N/A N/A self N/A N/A N/A 
        The default behavior is to autocommit after each save() action.
         N/A N/A N/A self assertRaises Exception N/A N/A N/A N/A self create_reporter_and_fail N/A N/A N/A self assertEqual N/A N/A N/A Reporter objects count 1 N/A N/A skipUnlessDBFeature supports_transactions test_autocommit_context_manager N/A N/A self N/A N/A N/A 
        The autocommit context manager works exactly the same as the default
        behavior.
         N/A N/A N/A self assertRaises Exception N/A N/A N/A N/A transaction autocommit N/A N/A N/A N/A self create_reporter_and_fail N/A N/A N/A self assertEqual N/A N/A N/A Reporter objects count 1 N/A N/A skipUnlessDBFeature supports_transactions test_autocommit_context_manager_with_using N/A N/A self N/A N/A N/A 
        The autocommit context manager also works with a using argument.
         N/A N/A N/A self assertRaises Exception N/A N/A N/A N/A transaction autocommit using default N/A N/A N/A N/A self create_reporter_and_fail N/A N/A N/A self assertEqual N/A N/A N/A Reporter objects count 1 N/A N/A skipUnlessDBFeature supports_transactions test_commit_on_success N/A N/A self N/A N/A N/A 
        With the commit_on_success context manager, the transaction is only
        committed if the block doesn't throw an exception.
         N/A N/A N/A self assertRaises Exception N/A N/A N/A N/A transaction commit_on_success N/A N/A N/A N/A self create_reporter_and_fail N/A N/A N/A self assertEqual N/A N/A N/A Reporter objects count 0 N/A N/A skipUnlessDBFeature supports_transactions test_commit_on_success_with_using N/A N/A self N/A N/A N/A 
        The commit_on_success context manager also works with a using argument.
         N/A N/A N/A self assertRaises Exception N/A N/A N/A N/A transaction commit_on_success using default N/A N/A N/A N/A self create_reporter_and_fail N/A N/A N/A self assertEqual N/A N/A N/A Reporter objects count 0 N/A N/A skipUnlessDBFeature supports_transactions test_commit_on_success_succeed N/A N/A self N/A N/A N/A 
        If there aren't any exceptions, the data will get saved.
         N/A N/A N/A N/A Reporter objects create first_name Alice last_name Smith N/A N/A N/A transaction commit_on_success N/A N/A N/A N/A N/A N/A N/A Reporter objects filter first_name Alice delete N/A N/A N/A self assertQuerysetEqual N/A N/A N/A Reporter objects all N/A N/A N/A skipUnlessDBFeature supports_transactions test_commit_on_success_exit N/A N/A self N/A N/A N/A N/A N/A transaction autocommit N/A N/A N/A N/A transaction commit_on_success N/A N/A N/A N/A N/A Reporter objects create first_name Bobby last_name Tables N/A r N/A N/A N/A Reporter objects get N/A N/A r first_name Robert N/A N/A N/A r save N/A r N/A N/A N/A Reporter objects get N/A N/A N/A self assertEqual N/A r first_name Robert N/A N/A skipUnlessDBFeature supports_transactions test_manually_managed N/A N/A self N/A N/A N/A 
        You can manually manage transactions if you really want to, but you
        have to remember to commit/rollback.
         N/A N/A N/A transaction commit_manually N/A N/A N/A N/A N/A Reporter objects create first_name Libby last_name Holtzman N/A N/A N/A transaction commit N/A N/A N/A self assertEqual N/A N/A N/A Reporter objects count 1 N/A N/A skipUnlessDBFeature supports_transactions test_manually_managed_mistake N/A N/A self N/A N/A N/A 
        If you forget, you'll get bad errors.
         N/A N/A N/A self assertRaises N/A transaction TransactionManagementError N/A N/A N/A N/A transaction commit_manually N/A N/A N/A N/A N/A Reporter objects create first_name Scott last_name Browning N/A N/A skipUnlessDBFeature supports_transactions test_manually_managed_with_using N/A N/A self N/A N/A N/A 
        The commit_manually function also works with a using argument.
         N/A N/A N/A self assertRaises N/A transaction TransactionManagementError N/A N/A N/A N/A transaction commit_manually using default N/A N/A N/A N/A N/A Reporter objects create first_name Walter last_name Cronkite N/A N/A skipUnlessDBFeature supports_transactions test_bad_sql N/A N/A self N/A N/A N/A 
        Regression for #11900: If a block wrapped by commit_on_success
        writes a transaction that can't be committed, that transaction should
        be rolled back. The bug is only visible using the psycopg2 backend,
        though the fix is generally a good idea.
         N/A N/A N/A self assertRaises IntegrityError N/A N/A N/A N/A transaction commit_on_success N/A N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute INSERT INTO transactions_reporter (first_name, last_name) VALUES ('Douglas', 'Adams'); N/A N/A N/A transaction set_dirty N/A N/A N/A transaction rollback N/A N/A skipUnlessDBFeature requires_rollback_on_dirty_transaction N/A