Commits

Andrew Godwin committed 8359559

Fix #194: Incorrect detection of _id for delete_unique

Comments (0)

Files changed (1)

south/management/commands/startmigration.py

             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]
+            
             forwards += DELETE_UNIQUE_SNIPPET % (
                 ", ".join(ut),
                 model._meta.object_name,
                 model._meta.db_table,
-                ut,
+                cols,
             )
             
             backwards += CREATE_UNIQUE_SNIPPET % (
                 ", ".join(ut),
                 model._meta.object_name,
                 model._meta.db_table,
-                ut,
+                cols,
             )