#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# cleaned_data = self . cleaned_data #NEWLINE# password1 = cleaned_data . get ( 'password1' ) #NEWLINE# password2 = cleaned_data . get ( 'password2' ) #NEWLINE# if ( cleaned_data != password2 ) : #NEWLINE# #INDENT# raise forms . ValidationError ( 'Passwords do not match' ) #NEWLINE# #UNINDENT# return cleaned_data