#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# cleaned_data = cleaned_data . cleaned_data #NEWLINE# if ( cleaned_data . get ( 'text' ) == 'Raise non-field error' ) : #NEWLINE# #INDENT# raise ValidationError ( 'Non-field error.' ) #NEWLINE# #UNINDENT# return cleaned_data