﻿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
1856	[patch] content types and permissions not populated unless model contains inner Admin class	mattimustang@…	Adrian Holovaty	"I've discovered that if your model doesn't have and inner Admin class defined then unless you call ContentType.objects.get_for_model() somewhere in your own code, the content type for that model is never created.

Same goes for permissions. {{{django/contrib/auth/management.py}}} doesn't create perms unless the model has Admin defined.

I found this out when I finally got around to implementing my own views for add/change/delete of a model and when I removed the inner Admin class because I no longer needed it, my views broke after a fresh install because neither perms or content types were being set up.

The following patch fixes this.

regards

Mathew Flanagan
"	defect	closed	contrib.admin	dev	major	fixed			Unreviewed	1	0	0	0	0	0
