﻿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
21283	Migrations created in wrong directory for models defined in model package	anonymous	Markus Holtermann	"Django supports to split a bunch of models into a separate Python modules which are placed in a models Python package. However the `django.db.migrations.writer.MigrationWriter` does not reflect this fact in its `path` property.

The solution is easy:

If `myapp.models` is a Python `app_module` (currently line 61) has a `__path__` attribute. If it is a Python module there is no such attribute.

I'm going to write a patch and open a pull request for further discussion."	Bug	closed	Migrations	dev	Normal	fixed		info@…	Accepted	1	0	1	0	0	0
