1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #22319 -- Fixed migration external dependencies when there are internal dependencies.

This commit is contained in:
Loic Bistuer
2014-03-26 03:51:15 +08:00
committed by Tim Graham
parent a449e7feec
commit 0fd51cf0bd
2 changed files with 13 additions and 12 deletions

View File

@@ -343,7 +343,7 @@ class AutodetectorTests(TestCase):
self.assertEqual(action.name, "author")
# Right dependencies?
self.assertEqual(migration1.dependencies, [("otherapp", "auto_1")])
self.assertEqual(migration2.dependencies, [])
self.assertEqual(migration2.dependencies, [('testapp', '__first__')])
self.assertEqual(set(migration3.dependencies), set([("otherapp", "auto_1"), ("testapp", "auto_1")]))
def test_same_app_circular_fk_dependency(self):