#NEWLINE# def render( self , name , value , attrs = None , choices = ( ) ) : #NEWLINE# #INDENT# if ( value is None ) : #NEWLINE# #INDENT# value = '' #NEWLINE# #UNINDENT# final_attrs = self . build_attrs ( attrs , name = name ) #NEWLINE# output = [ ( '<select%s>' % flatatt ( final_attrs ) ) ] #NEWLINE# options = self . render_options ( choices , [ value ] ) #NEWLINE# if options : #NEWLINE# #INDENT# output . append ( options ) #NEWLINE# #UNINDENT# output . append ( '</select>' ) #NEWLINE# return mark_safe ( '\n' . join ( output ) )