1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

[1.7.x] Fixed #22319 -- Fixed migration external dependencies when there are internal dependencies.

Backport of 0fd51cf0bd from master
This commit is contained in:
Loic Bistuer
2014-03-26 03:51:15 +08:00
committed by Tim Graham
parent bdec848063
commit 8e73d3a2c1
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):