mirror of
https://github.com/django/django.git
synced 2025-11-03 05:13:23 +00:00
Fixed schema test failure when running tests in reverse.
Follow up to 003334f8af.
This commit is contained in:
parent
33a0b7ac81
commit
78f8b80f9b
1 changed files with 1 additions and 0 deletions
|
|
@ -1599,6 +1599,7 @@ class SchemaTests(TransactionTestCase):
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label = 'schema'
|
app_label = 'schema'
|
||||||
|
|
||||||
|
self.isolated_local_models = [Book._meta.get_field('tags').remote_field.through]
|
||||||
with connection.schema_editor() as editor:
|
with connection.schema_editor() as editor:
|
||||||
editor.create_model(Tag)
|
editor.create_model(Tag)
|
||||||
editor.create_model(Book)
|
editor.create_model(Book)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue