W dniu piątek, 7 lipca 2017 23:54:07 UTC+2 użytkownik Andrew Godwin napisał: > > There is already a run-before constraint you can add to migrations for > exactly this purpose! It's called "run_before" and is in the same format as > the dependencies IIRC. >
The problem with "run before X" is that there is no "X" at the point in time where you write that migration. I think it would be more robust if Django tried to run migrations _from other apps_ that depend on the currently executing migration before proceeding to run the next migration from the same app. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/8e89de6a-3a4b-4a53-8455-b1b62ca293fd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.