From 75a4576e5f1777d33bb75cc6224733a9ce750948 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 12 Apr 2018 13:59:02 -0400 Subject: [PATCH] [2.0.x] Fixed schema test failure when running tests in reverse. Follow up to 003334f8af29e2023cf7ad7d080aa9ab26a7c528. Backport of 78f8b80f9b215e50618375adce4c97795dabbb84 from master --- tests/schema/tests.py | 1 + 1 file changed, 1 insertion(+) 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)