﻿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
23305	Models that are imported on app's import time are invisible to makemigrations when the application is relabeld	Rafał Pitoń	nobody	"Models that are imported in app's `__init__.py`, or by modules imported from that become invisible for Django if app uses apps.py and AppConfig.

To reproduce it create app with basic config and simple model in models.py. If this model is imported inside `__init__.py`, or other module imported in `__init__.py`, it will become invisible to makemigrations.

Tried this both with default_app_config as well as giving full path to AppConfig in INSTALLED_APPS.

I'm running latest code from 1.7 branch.

'''EDIT by (c-schmitt):''' This Bug Report only works when you import an Model in `__init__.py` and relabel your application in AppConfig.
I attached a Test that could be applied to `stable/1.7.x` and the user that submitted the bug also has an example application on github.


"	Bug	new	Migrations	1.7-rc-2	Release blocker				Unreviewed	0	0	0	0	0	0
