Modify

Ticket #521 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

new models from --auto fail to respect unique_together

Reported by: thejash@… Owned by: andrew
Priority: major Milestone: 0.7.2
Component: commands Version: unknown
Keywords: Cc:

Description

No unique_together constraint is being created in my --auto migration for the model that is added during that migration (though unique_together seems to be working for other models that were created with --initial.)

It really seems like the code from
http://south.aeracode.org/browser/south/creator/changes.py
lines 434 to 446 should really get executed for --auto models too, not just --initial. ie, something to that effect should be added around line 142 of the same file.

Or maybe I'm missing something and that's impossible for some reason?

Attachments

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed

You're pretty correct, there. Fixed in [4bea62b330ae].

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.