﻿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
9317	Return content type of child class when parent passed to ContentType.objects.get_for_model	Alexander Artemenko	nobody	"There is a problem during inheritance, if I have:

{{{
class Parent(models.Model): pass
class Child(Parent): pass
class Child2(Parent): pass
}}}

Next create objects of Child and Child2 types.
After that for each of Parent.objects.all() I want to receive it's ContentType. Obviously, that in case of this inheritance, I need to get ContentType of Child or Child2 instead of Parent.

My patch add this 'virtual' behaviour to get_for_model method. Also it includes two unittests for this behaviour."		closed	Contrib apps	1.0		wontfix	contenttype		Unreviewed	1	0	0	0	0	0
