﻿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
21681	Simplify Apps.populate_models	Aymeric Augustin	nobody	"There are two highly dubious things in the current implementation of the app registry (which date back to a refactoring by Malcolm 7 years ago):

1) The ""postponing"" behavior which is designed to avoid circular imports when populate_models() is triggered during the import of a models module. Depending on the implementation of #21676, that may become unnecessary. ptone once suggested that #18251 removed the need for this behavior, but I'm not sure why.

2) The three uses of get_registered_model. It looks like it's optional. But ModelBase.__new__ is scary..."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed	app-loading		Accepted	0	0	0	0	0	0
