1. Daniel Ostrowski
  2. south


Simon Law  committed 7a04063

Change return values for get_dependencies()

  • Participants
  • Parent commits f4033a7
  • Branches default

Comments (0)

Files changed (1)

File south/migration/__init__.py

View file
  • Ignore whitespace
         migration_before_here = target.next()
         if migration_before_here:
             backwards = migration_before_here.backwards_plan
-    return backwards, forwards
+    return forwards, backwards
 def get_direction(target, histories, migrations, verbosity):
     # Get the forwards and reverse dependencies for this target
-    backwards, forwards = get_dependencies(target, migrations)
+    forwards, backwards = get_dependencies(target, migrations)
     # Get the list of currently applied migrations from the db
     applied = currently_applied(histories)
     # Is the whole forward branch applied?