Replying to myself:

On Sunday 21 September 2014 20:59:46 Shai Berger wrote:
> Hi,
> 
> I'm looking into the details of migrations a little, and I ran into this
> issue.
> 
> I have two migrations: The first creates a model, the second adds another
> model and a field to the first model. I'd expect squashmigrations to patch
> the AddField into the first CreateModel, but it finds "No optimizations
> possible". What am I missing?
> 

Yesterday-self is missing that foreign keys (seem to be) always added in 
separate operations. This makes it easy to resolve reference loops.

Shai.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/201409221004.44992.shai%40platonix.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to