diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2012-08-18 13:48:54 +0100 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2012-08-18 13:48:54 +0100 |
| commit | f7955c703de85059f06963ae948d64c28ceeef27 (patch) | |
| tree | e3867d713aa3f283d751fcf30997dc8f8f2fd0d2 /tests | |
| parent | cab044c66ca3d1f3cfc704f64364aced2b9645af (diff) | |
All tests passing on MySQL
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/schema/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/schema/tests.py b/tests/modeltests/schema/tests.py index 7b1de268a4..7031138280 100644 --- a/tests/modeltests/schema/tests.py +++ b/tests/modeltests/schema/tests.py @@ -39,6 +39,7 @@ class SchemaTests(TestCase): connection.rollback() # Delete any tables made for our models cursor = connection.cursor() + connection.disable_constraint_checking() for model in self.models: # Remove any M2M tables first for field in model._meta.local_many_to_many: @@ -59,6 +60,7 @@ class SchemaTests(TestCase): connection.rollback() else: connection.commit() + connection.enable_constraint_checking() # Unhook our models for model in self.models: model._meta.managed = False |
