Commits

and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8  committed b224a54

Fix #117: No FKs to self.

  • Participants
  • Parent commits 5ec26e8

Comments (0)

Files changed (1)

File 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