Commits

Andrew Godwin  committed 0505afa

Fix from #436 - correctly test for model bases with subclass, not instance.

  • Participants
  • Parent commits e231620

Comments (0)

Files changed (1)

File south/creator/freezer.py

         depends.update(field_dependencies(field))
     # Add in any non-abstract bases
     for base in model.__bases__:
-        if isinstance(base, models.Model) and not base._meta.abstract:
+        if issubclass(base, models.Model) and (base is not models.Model) and not base._meta.abstract:
             depends.add(base)
     # Now recurse
     new_to_check = depends - checked_models