File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
4848 supports_transactions = True
4949 #uses_savepoints = True
5050
51+ def _supports_transactions (self ):
52+ # keep it compatible with Django 1.3 and 1.4
53+ return self .supports_transactions
5154
5255class DatabaseWrapper (BaseDatabaseWrapper ):
5356 _DJANGO_VERSION = _DJANGO_VERSION
Original file line number Diff line number Diff line change @@ -120,6 +120,10 @@ def _prepare_for_test_db_ddl(self):
120120 self .connection .connection .rollback ()
121121 self .connection .connection .autocommit = True
122122
123+ def _rollback_works (self ):
124+ # keep it compatible with Django 1.2
125+ return self .connection .features .supports_transactions
126+
123127 def sql_table_creation_suffix (self ):
124128 suffix = []
125129 if self .connection .settings_dict ['TEST_COLLATION' ]:
You can’t perform that action at this time.
0 commit comments