﻿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
17765	Better model 'app_label' introspection using 'INSTALLED_APPS'	fengb	nobody	"Currently, the model generates ""app_label"" by taking the second to last module:

django.contrib.auth.models.User  ->  auth
newproj.newapp.models.Newmodel  ->  newapp
newproj.newapp.models.db.Newmodel  ->  models

The last example doesn't make any sense.  I propose that we match the module chain against 'INSTALLED_APPS' to find the correct app."	Bug	closed	Database layer (models, ORM)	1.3	Normal	worksforme	app_label		Accepted	1	0	1	0	0	0
