﻿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
21901	Dependencies on unmigrated apps not always detected.	Marc Tamlyn		"Related to the comment on https://github.com/django/django/commit/941d23e54890bcc9e73734c5c1f3c82193fd97d6

I have seen this behaviour myself, with a custom user model using `PermissionsMixin`. The necessary line in `dependencies` of `(""auth"", ""__first__""),` is not present. I'm not sure whether this is an issue with it being a swappable model or not, but there's definitely a bug anyway. 

The migration gets written out, but on running it you get a traceback because the relations to auth cannot resolve (as the migration's limited app cache ignores auth)"	Bug	closed	Migrations	1.7-alpha-1	Release blocker	duplicate			Accepted	0	0	0	0	0	0
