1. Andrew Godwin
  2. south


shaib  committed 198275d

Make change detection ignore changes in existing non-managed models

  • Participants
  • Parent commits d788e3e
  • Branches default

Comments (0)

Files changed (1)

File south/creator/changes.py

View file
                 old_fields, old_meta, old_m2ms = self.split_model_def(self.old_orm[key], self.old_defs[key])
                 new_fields, new_meta, new_m2ms = self.split_model_def(self.current_model_from_key(key), self.new_defs[key])
+                # Do nothing for models which are now not managed.
+                if new_meta.get("managed", "True") == "False":
+                    continue
                 # Find fields that have vanished.
                 for fieldname in old_fields:
                     if fieldname not in new_fields: