#NEWLINE# def clean_password2( self ) : #NEWLINE# #INDENT# password1 = self . cleaned_data . get ( 'password1' ) #NEWLINE# password2 = super ( UserCreationForm , self ) . clean_password2 ( ) #NEWLINE# if ( bool ( password1 ) ^ bool ( self ) ) : #NEWLINE# #INDENT# raise forms . ValidationError ( 'Fill out both fields' ) #NEWLINE# #UNINDENT# return password2