#NEWLINE# def clean( self , value ) : #NEWLINE# #INDENT# cleaned = super ( ChoiceValue , self ) . clean ( value ) #NEWLINE# if ( cleaned in self . choices ) : #NEWLINE# #INDENT# return cleaned #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . error ( value , 'choice' )