﻿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
23331	Circular dependencies are not resolved by new Migrate framework	Aidan Lister	Andrew Godwin	"It's very easy and not explicitly not-supported to create circular dependencies in your apps. I have attached a test project which has two circular dependency resolution failures.

This fails to create migrations:

    ./manage.py makemigrations contractors inspections organisations properties reports tasks timeline

This creates the migrations:

    ./manage.py makemigrations properties reports tasks timeline
    ./manage.py makemigrations contractors inspections

But then ./manage.py migrate fails:

    django.db.migrations.graph.CircularDependencyError: [('contractors', u'0002_auto_20140821_0156'), ('reports', u'0001_initial'), ('inspections', u'0001_initial'), ('contractors', u'0002_auto_20140821_0156')]


I have tried manually breaking up the migrations into lots of little steps, but you'll have the same problem with the reports and inspections app. Even with lots of tiny migrations it eventually loops around.

"	Bug	closed	Migrations	dev	Normal	invalid	migrate	aidan@… Markus Holtermann	Unreviewed	0	0	0	0	0	0
