#NEWLINE# def clean_email( self ) : #NEWLINE# #INDENT# super_clean_email = getattr ( super ( FriendlyPasswordResetForm , self ) , 'clean_email' , None ) #NEWLINE# if callable ( super_clean_email ) : #NEWLINE# #INDENT# return super_clean_email ( ) #NEWLINE# #UNINDENT# email = self . cleaned_data [ 'email' ] #NEWLINE# qs = User . _default_manager . filter ( is_active = True , email__iexact = email ) #NEWLINE# results = [ user for user in qs if user . has_usable_password ( ) ] #NEWLINE# if ( not results ) : #NEWLINE# #INDENT# raise forms . ValidationError ( self . error_messages [ 'unknown' ] ) #NEWLINE# #UNINDENT# return email