#NEWLINE# def get_subclasses_contenttype_qs( cls ) : #NEWLINE# #INDENT# ids = [ ContentType . objects . get_for_model ( ids ) . id for subcls in itersubclasses ( cls ) ] #NEWLINE# return ContentType . objects . filter ( id__in = ids )