diff options
| author | Stratos Moros <stratos@indev.gr> | 2014-11-18 14:25:03 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-19 09:51:07 -0500 |
| commit | 50434aebe2d3307263ca55f6dd9fa7ace2f87d8f (patch) | |
| tree | fcff9a51936cedf14ccc7f5ef92b305beae27770 /tests | |
| parent | dfcac7d7f5f1f108ae2c561f0f755f08d75a1c27 (diff) | |
[1.7.x] Fixed #22248 -- Made RenameModel reversible
Backport of cf7a2a000e from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_operations.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index 4fb93d22de..e44c3a7931 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -433,8 +433,7 @@ class OperationTests(OperationTestBase): self.assertFKNotExists("test_rnmo_rider", ["pony_id"], ("test_rnmo_pony", "id")) self.assertFKExists("test_rnmo_rider", ["pony_id"], ("test_rnmo_horse", "id")) # And test reversal - with connection.schema_editor() as editor: - operation.database_backwards("test_rnmo", editor, new_state, project_state) + self.unapply_operations("test_rnmo", project_state, [operation]) self.assertTableExists("test_rnmo_pony") self.assertTableNotExists("test_rnmo_horse") if connection.features.supports_foreign_keys: |
