Commits

Andrew Godwin committed 2462822

Fix previous fix for #194 for when fields have just been deleted.

  • Participants
  • Parent commits 945577b

Comments (0)

Files changed (1)

File south/management/commands/startmigration.py

                     added_uniques.add((mkey, entry))
                     was_meta_change = True
                 for entry in du:
-                    deleted_uniques.add((mkey, entry))
+                    deleted_uniques.add((mkey, entry, last_orm[mkey]))
                     was_meta_change = True
             
             if not (am or dm or af or df or cf or was_meta_change):
         
         
         ### Deleted unique_togethers ###
-        for mkey, ut in deleted_uniques:
+        for mkey, ut, model in deleted_uniques:
             
-            model = model_unkey(mkey)
             print " - Deleted unique_together for [%s] on %s." % (", ".join(ut), model._meta.object_name)
             
             cols = [get_field_column(model, f) for f in ut]