#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# super ( FirstFieldRequiredFormSet , self ) . clean ( ) #NEWLINE# count = 0 #NEWLINE# for form in self . forms : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( form . cleaned_data and ( not form . cleaned_data . get ( 'DELETE' , False ) ) ) : #NEWLINE# #INDENT# count += 1 #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# if ( count < 1 ) : #NEWLINE# #INDENT# raise forms . ValidationError ( _ ( 'Please fill in at least one form' ) )