#22275: unique_together with foreign keys fails migration -------------------------------+-------------------- Reporter: ryanhiebert | Owner: nobody Type: Uncategorized | Status: new Component: Migrations | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- When {{{unique_together}}} includes foreign keys, sometimes those fields are added in separate migrations. (why?) However, {{{unique_together}}} remains in the initial migration, before the field referenced in {{{unique_together}}} is created. Adding the {{{unique_together}}} constraint then fails.
-- Ticket URL: <https://code.djangoproject.com/ticket/22275> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/054.9d69abd73ad1fd79c17f8970667b2c80%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.