#NEWLINE# def render( self , name , value , attrs = None , choices = ( ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = { #NEWLINE# #INDENT# True : '2' , #NEWLINE# False : '3' , #NEWLINE# '2' : '2' , #NEWLINE# '3' : '3' , #NEWLINE# #UNINDENT# } [ self ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# value = '1' #NEWLINE# #UNINDENT# return super ( NullBooleanSelect , self ) . render ( name , value , attrs , choices )