From 50434aebe2d3307263ca55f6dd9fa7ace2f87d8f Mon Sep 17 00:00:00 2001 From: Stratos Moros Date: Tue, 18 Nov 2014 14:25:03 +0200 Subject: [1.7.x] Fixed #22248 -- Made RenameModel reversible Backport of cf7a2a000e from master --- tests/migrations/test_operations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') 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: -- cgit v1.3