[2.0.x] Fixed schema test failure when running tests in reverse.
Follow up to003334f8af
. Backport of78f8b80f9b
from master
This commit is contained in:
parent
1ed31efb87
commit
75a4576e5f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue