#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# seen_drinks = [ ] #NEWLINE# for drink in self . cleaned_data : #NEWLINE# #INDENT# if ( drink [ 'name' ] in seen_drinks ) : #NEWLINE# #INDENT# raise ValidationError ( 'You may only specify a drink once.' ) #NEWLINE# #UNINDENT# seen_drinks . append ( drink [ 'name' ] )