#NEWLINE# def clean_password2( self ) : #NEWLINE# #INDENT# password1 = self . cleaned_data . get ( 'password1' , '' ) #NEWLINE# password2 = self . cleaned_data [ 'password2' ] #NEWLINE# if ( password1 != password2 ) : #NEWLINE# #INDENT# raise forms . ValidationError ( self . error_messages [ 'password_mismatch' ] ) #NEWLINE# #UNINDENT# return password2