﻿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
12245	"m2m-refactor: r11724 broke model definitions outside of a ""models"" module (e.g. in tests)"	Johannes Dollinger	nobody	"While not documented, it was possible to declare a model in tests.py (by explicitly setting `app_label`).

Since r11724 `create_many_to_many_intermediary_model()` assumes a module called `models`. This breaks test models that contain m2m fields. And thus requires a solution (or workaround) for #7835.

I'd suggest setting `app_label` for auto created models instead of scanning the module name. "		closed	Uncategorized	1.1		fixed			Unreviewed	0	0	0	0	0	0
