Commits

Andrew Godwin  committed c71cf65

Change the AddUnique action to actually use the create_unique function call.

  • Participants
  • Parent commits 304e6e4
  • Branches 0.7

Comments (0)

Files changed (1)

File south/creator/actions.py

     
     FORWARDS_TEMPLATE = '''
         # Adding unique constraint on '%(model_name)s', fields %(fields)s
-        db.add_unique(%(table_name)r, %(fields)r)'''
+        db.create_unique(%(table_name)r, %(fields)r)'''
     
     BACKWARDS_TEMPLATE = '''
         # Removing unique constraint on '%(model_name)s', fields %(fields)s