1. Carl Meyer
  2. south


Andrew Godwin  committed 0505afa

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

  • Participants
  • Parent commits e231620
  • Branches default

Comments (0)

Files changed (1)

File south/creator/freezer.py

View file
     # 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:
     # Now recurse
     new_to_check = depends - checked_models