#NEWLINE# def tag( self , attrs = None ) : #NEWLINE# #INDENT# if ( attrs is None ) : #NEWLINE# #INDENT# tag = super ( ContentTypeRadioInput , self ) . tag ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tag = super ( ContentTypeRadioInput , self ) . tag ( attrs ) #NEWLINE# #UNINDENT# ct = ContentType . objects . get_for_id ( self . choice_value ) #NEWLINE# return format_html ( '<div class="previewImage {0} {1}"></div>{2}' , ct . app_label , ct . model , tag )