#NEWLINE# def get_real_instance_class( self ) : #NEWLINE# #INDENT# '\n        Normally not needed.\n        If a non-polymorphic manager (like base_objects) has been used to\n        retrieve objects, then the real class/type of these objects may be\n        determined using this method.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# model = ContentType . objects . get_for_id ( self . polymorphic_ctype_id ) . model_class ( ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( ( model is not None ) and ( not issubclass ( model , self . __class__ ) ) and ( not issubclass ( model , self . __class__ . _meta . proxy_for_model ) ) ) : #NEWLINE# #INDENT# raise RuntimeError ( 'ContentType {0} for {1} #{2} does not point to a subclass!' . format ( self . polymorphic_ctype_id , model , self . pk ) ) #NEWLINE# #UNINDENT# return model