Ticket #521 (closed defect: fixed)

Opened 5 years ago

Last modified 5 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:


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
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?

Change History

comment:1 Changed 5 years ago by andrew

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

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

Note: See TracTickets for help on using tickets.