diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index c755ff0305..1390638270 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -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() @@ -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.