﻿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
30850	Overriding the default admin requires the custom admin site not to be in admin.py.	Jimmy Merrild Krag	nobody	"The [[https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#overriding-the-default-admin-site | example for overriding the default admin]] has a flaw.

The class `MyAdminSite` cannot be in the same file as admin registrations, or they will not be registered correctly. Therefore,  in the example, `MyAdminSite` should be placed in another file, e.g. `admin_site.py` instead, and this importance should be noted."	Uncategorized	closed	Documentation	2.2	Normal	duplicate	admin admin_site		Unreviewed	0	0	0	0	0	0
