﻿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
24038	Django won't add dependencies to existing migrations	Esteban C Borsani	nobody	"I've this app that uses a custom user model. I've created initial migrations. Anyone interested in replacing/extending my [https://github.com/nitely/Spirit/blob/master/spirit/models/user.py custom user model] has to set `AUTH_USER_MODEL` to their own custom user model that inherits from my abstract user model.

When running `./manage migrate` it fails with:

{{{
Running migrations:
  Applying spirit.0001_initial...Traceback (most recent call last):
  File ""C:\Users\Admin\PycharmProjects\VEnv\Spirit-gh34\lib\site-packages\django\apps\registry.py"", line 148, in get_app_config
    return self.app_configs[app_label]
KeyError: 'myuserapp'
}}}

After adding `('myuserapp', '0001_initial'),` to `spirit.0001_initial` dependencies list, everything works as expected.

To fix this, django should be able to add dependencies to existing migrations."	Bug	closed	Migrations	1.7	Normal	wontfix	Migrations AUTH_USER_MODEL		Unreviewed	0	0	0	0	0	0
