summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-04-12 13:59:02 -0400
committerTim Graham <timograham@gmail.com>2018-04-12 20:29:30 -0400
commit46496a542c2ff9f273e090073e9c8071acb1a4a4 (patch)
treee86ad5319a5b3e22dce11929bb082def7d70e718 /tests
parent979253fce9c0bb6ee484a5a786d477a47545d972 (diff)
[1.11.x] Fixed schema test failure when running tests in reverse.
Follow up to 003334f8af29e2023cf7ad7d080aa9ab26a7c528. Backport of 78f8b80f9b215e50618375adce4c97795dabbb84 from master
Diffstat (limited to 'tests')
-rw-r--r--tests/schema/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index 1f8f97188c..7108977c2b 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -1446,6 +1446,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)