Commits

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

Fixing #152: Direct Model import fails.

  • Participants
  • Parent commits d7306bc

Comments (0)

Files changed (1)

File south/modelsparser.py

     """
     aliases = {}
     for name, obj in module.__dict__.items():
-        if isclass(obj) and issubclass(obj, models.Model):
+        if isclass(obj) and issubclass(obj, models.Model) and obj is not models.Model:
             # Test to see if this has a different name to what it should
             if name != obj._meta.object_name:
                 aliases[name] = obj._meta.object_name