#NEWLINE# def clean_password2( self ) : #NEWLINE# #INDENT# password1 = self . cleaned_data . get ( 'password1' ) #NEWLINE# password2 = self . cleaned_data . get ( 'password2' ) #NEWLINE# if ( password1 and password2 and ( password1 != password2 ) ) : #NEWLINE# #INDENT# raise forms . ValidationError ( "Passwords don't match" ) #NEWLINE# #UNINDENT# return password2