diff --git a/tests/schema/tests.py b/tests/schema/tests.py index 6046e4473d..8ae0e5c7f3 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -1592,6 +1592,7 @@ class SchemaTests(TransactionTestCase): class Meta: app_label = 'schema' + self.isolated_local_models = [Book._meta.get_field('tags').remote_field.through] with connection.schema_editor() as editor: editor.create_model(Tag) editor.create_model(Book)