1. Josh VanderLinden
  2. south


Andrew Godwin  committed 2ecc7d1

Support unmanaged models

  • Participants
  • Parent commits 3a3140b
  • Branches default

Comments (0)

Files changed (1)

File south/management/commands/startmigration.py

View file
  • Ignore whitespace
             new = dict([
                 (model_key(model), prep_for_freeze(model))
                 for model in models.get_models(app_models_module)
-                if not getattr(model._meta, "proxy", False)
+                if (not getattr(model._meta, "proxy", False) and getattr(model._meta, "managed", True))
             # And filter other apps out of the old
             old = dict([