Commits

Germán M. Bravo  committed a804ba9

Fixed code order after merge

  • Participants
  • Parent commits 009c8f2

Comments (0)

Files changed (1)

File south/creator/changes.py

                 
                 renamed_fields = set()
                 
+                old_fields, old_meta, old_m2ms = self.split_model_def(self.old_orm[old_key], self.old_defs[old_key])
+                new_fields, new_meta, new_m2ms = self.split_model_def(self.current_model_from_key(new_key), self.new_defs[new_key])
+                
                 # Do nothing for models which are now not managed.
                 if new_meta.get("managed", "True") == "False":
                     continue
 
-                old_fields, old_meta, old_m2ms = self.split_model_def(self.old_orm[old_key], self.old_defs[old_key])
-                new_fields, new_meta, new_m2ms = self.split_model_def(self.current_model_from_key(new_key), self.new_defs[new_key])
-                
                 # Find fields that have been renamed.
                 for old_fieldname in old_fields:
                     if old_fieldname not in new_fields: