Commits

Anonymous committed b224a54

Fix #117: No FKs to self.

Comments (0)

Files changed (1)

south/management/commands/startmigration.py

     # Or perhaps it's app.model?
     if arg.lower() == rel_to._meta.app_label.lower() + "." + rel_name.lower():
         return real_name
+    # Or perhaps it's 'self'?
+    if arg == RECURSIVE_RELATIONSHIP_CONSTANT:
+        return real_name
     return orig_arg