1. Dmitry Selitsky
  2. south


Andrew Godwin  committed 4f9e1e6 Merge

Branch merge

  • Participants
  • Parent commits ed1f8bc, f5a786e
  • Branches default

Comments (0)

Files changed (2)

File south/db/generic.py

View file
  • Ignore whitespace
         if self.dry_run:
             return []
-        get_logger().debug('execute "%s" with params "%s"' % (sql, params))
+        get_logger().debug(u'execute "%s" with params "%s"' % (sql, params))
             cursor.execute(sql, params)

File south/migration/__init__.py

View file
  • Ignore whitespace
     "Takes a set of possible problems and gets the actual issues out of it."
     result = []
     for last, migration in problems:
+        checked = set([])
         # 'Last' is the last applied migration. Step back from it until we
         # either find nothing wrong, or we find something.
         to_check = list(last.dependencies)
         while to_check:
             checking = to_check.pop()
+            if checking in checked:
+                continue
+            checked.add(checking)
             if checking not in done:
                 # That's bad. Error.
                 if verbosity: