Commits

shaib  committed 75080a0 Merge

merge upstream

  • Participants
  • Parent commits 6df5816, 852b14a

Comments (0)

Files changed (1)

File south/migration/utils.py

     
     # We need to apply all the migrations this one depends on
     for n in children:
-        for result in _dfs(n, get_children, path):
-            results.append(result)
+        results = _dfs(n, get_children, path) + results
 
     path.pop()
 
+    results = list(SortedSet(results))
     dependency_cache[(start, get_children)] = results
     return results
 
     return _dfs(start, get_children, [])
 
 def depends(start, get_children):
-    result = SortedSet(reversed(list(dfs(start, get_children))))
-    return list(result)
+    return dfs(start, get_children)