﻿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
22204	migrations yield CircularDependencyError for simple model	Gabe Jackson	nobody	"Here is a simple test project to reproduce the django.db.migrations.graph.CircularDependencyError error:
[https://github.com/gabejackson/django-migration-testproject/]

Steps to reproduce:
{{{
cd simple_circular_dependency
# Cleanup (note this stuff isn't in the repo)
rm -rf */migrations/*.pyc
rm -rf */migrations/00*
rm db.sqlite3

# Migrations
./manage.py makemigrations
}}}

Yields:
{{{
Migrations for 'a':
  0001_initial.py:
    - Create model Contact
    - Create model Person
    - Create model Address
    - Create model ShopUserAddress
    - Create model ShopUserContact
    - Create model ShopUserPerson
Migrations for 'b':
  0001_initial.py:
    - Create model DeliveryCountry
    - Create model Package
}}}

now run:
{{{
./manage.py migrate --list
}}}
yields: 
{{{
django.db.migrations.graph.CircularDependencyError: [('a', '0001_initial'), ('b', '0001_initial'), ('a', '0001_initial')]
}}}"	Bug	closed	Migrations	dev	Release blocker	fixed	migrations	Andrew Godwin gerardo	Unreviewed	0	0	0	0	0	0
