#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# cleaned_data = super ( MultipleChoiceQuestionForm , self ) . clean ( ) #NEWLINE# a_is_correct = cleaned_data . get ( 'a_is_correct' ) #NEWLINE# b_is_correct = cleaned_data . get ( 'b_is_correct' ) #NEWLINE# c_is_correct = cleaned_data . get ( 'c_is_correct' ) #NEWLINE# d_is_correct = cleaned_data . get ( 'd_is_correct' ) #NEWLINE# e_is_correct = cleaned_data . get ( 'e_is_correct' ) #NEWLINE# f_is_correct = cleaned_data . get ( 'f_is_correct' ) #NEWLINE# answer_count = 0 #NEWLINE# if a_is_correct : #NEWLINE# #INDENT# answer_count += 1 #NEWLINE# #UNINDENT# if b_is_correct : #NEWLINE# #INDENT# answer_count += 1 #NEWLINE# #UNINDENT# if c_is_correct : #NEWLINE# #INDENT# answer_count += 1 #NEWLINE# #UNINDENT# if d_is_correct : #NEWLINE# #INDENT# answer_count += 1 #NEWLINE# #UNINDENT# if e_is_correct : #NEWLINE# #INDENT# answer_count += 1 #NEWLINE# #UNINDENT# if f_is_correct : #NEWLINE# #INDENT# answer_count += 1 #NEWLINE# #UNINDENT# if ( answer_count <= 0 ) : #NEWLINE# #INDENT# raise forms . ValidationError ( 'Minimum of one correc answer must exist.' )