id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 27319,Circular ForeignKeys between two unmanaged models produce incomplete migrations,Jamie Bliss,nobody,"From what I understand, `makemigrations` produces migrations for unmanaged models, and the state of those migrations are tracked, but no SQL is actually run. The way that `makemigrations` handles circular `ForeignKey` references between two models is to produce two migrations. (This may only happen if the two models are in different applications.) However, when both the models involved are unmanaged (`managed = False`), the second migration is not produced, leaving the migrations overall inconsistent with the models (and therefore, useless). The workaround appears to be temporarily removing the managed flag, running the migrations, restoring the managed flag on the models and manually inserting it into the migrations.",Bug,new,Migrations,1.10,Normal,,,,Accepted,0,0,0,0,0,0