﻿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
22783	Auto-created migrations place custom user model *after* things that depend on it.	Stephen Burrows	Andrew Godwin	"Ran into this when I tried to pull the latest stable/1.7.x (currently @ c8c1883962ebb0668663134e023ffbe1c753a450) and re-generate migrations for [http://github.com/littleweaver/django-brambling django-brambling] (@ d479f0666c7fe4d5d9f11554737909dc8504ce43).

The error I'm getting is:

{{{ValueError: Lookup failed for model referenced by field brambling.Attendee.event_person: brambling.EventPerson}}}

The reason I'm getting this error AFAICT is that {{{brambling.Person}}} is a swappable user model, and is being placed *after* things that depend on it.

I had to revert to 52b7e772e4da846efb2d75b22ec05c7105091b76 to get things working."	Bug	closed	Migrations	1.7-beta-2	Release blocker	fixed		Stephen Burrows	Accepted	0	0	0	0	0	0
