﻿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
1824	Name clashes in user-installed apps cause duplications in Admin Interface	jermy	nobody	"I naively created a new Django application called 'admin', created a suitable model to access an existing database, and set up the admin interface to access it. Unfortunately, this resulted in two 'Admin' modules, and two sets of my models appearing in the admin interface.

Debugging this, I see that in django.db.models.loading there is a _app_models dictionary which only stores as a key the name of the modules - 'admin' in this case, rather than the whole path. This is handled with code such as:
{{{
    return _app_models.get(app_mod.__name__.split(""."")[-2], {}).values()
}}}

I appreciate that app names want to be short and unique for database use, but feel that either:

 1. This should work and use a fully-qualified name, particularly given users are likely to use many 3rd-party applications in the future and conflicts will arise.
 1. It should raise an Exception if conflicting module names exist.
"	defect	closed	Database layer (models, ORM)		normal	duplicate			Design decision needed	0	0	0	0	0	0
