Loading tests/migrations/test_operations.py +1 −1 Original line number Diff line number Diff line Loading @@ -485,6 +485,7 @@ class OperationTests(MigrationTestBase): Pony = models.get_model("test_runpython", "Pony") Pony.objects.create(pink=1, weight=3.55) Pony.objects.create(weight=5) def inner_method_reverse(models, schema_editor): Pony = models.get_model("test_runpython", "Pony") Pony.objects.filter(pink=1, weight=3.55).delete() Loading Loading @@ -517,7 +518,6 @@ class OperationTests(MigrationTestBase): no_reverse_operation.database_backwards("test_runpython", editor, new_state, project_state) class MigrateNothingRouter(object): """ A router that sends all writes to the other database. Loading Loading
tests/migrations/test_operations.py +1 −1 Original line number Diff line number Diff line Loading @@ -485,6 +485,7 @@ class OperationTests(MigrationTestBase): Pony = models.get_model("test_runpython", "Pony") Pony.objects.create(pink=1, weight=3.55) Pony.objects.create(weight=5) def inner_method_reverse(models, schema_editor): Pony = models.get_model("test_runpython", "Pony") Pony.objects.filter(pink=1, weight=3.55).delete() Loading Loading @@ -517,7 +518,6 @@ class OperationTests(MigrationTestBase): no_reverse_operation.database_backwards("test_runpython", editor, new_state, project_state) class MigrateNothingRouter(object): """ A router that sends all writes to the other database. Loading