#NEWLINE# def tag( self ) : #NEWLINE# #INDENT# if ( 'id' in self . attrs ) : #NEWLINE# #INDENT# self . attrs [ 'id' ] = ( '%s_%s' % ( self . attrs [ 'id' ] , self . index ) ) #NEWLINE# #UNINDENT# final_attrs = dict ( self . attrs , type = 'radio' , name = self . name , value = self . choice_value ) #NEWLINE# if self . is_checked ( ) : #NEWLINE# #INDENT# final_attrs [ 'checked' ] = 'checked' #NEWLINE# #UNINDENT# return mark_safe ( ( '<input%s />' % flatatt ( final_attrs ) ) )