'Generate a one-use only link for resetting password and send it to the
user.'

def save(self, domain_override=None, subject_template_name='registration/password_reset_subject.txt', email_template_name='registration/password_reset_email.html', use_https=False, token_generator=default_token_generator, from_email=None, request=None, html_email_template_name=None, extra_email_context=None):

    email = self.cleaned_data['email']
    for user in self.get_users(email):
        if (not domain_override):
            current_site = get_current_site(request)
            site_name = current_site.name
            domain = current_site.domain
        else:
            site_name = domain = domain_override
        context = {'email': email, 'domain': domain, 'site_name': site_name, 'uid': urlsafe_base64_encode(force_bytes(user.pk)).decode(), 'user': user, 'token': token_generator.make_token(user), 'protocol': ('https' if use_https else 'http')}
        if (extra_email_context is not None):
            context.update(extra_email_context)
        self.send_mail(subject_template_name, email_template_name, context, from_email, email, html_email_template_name=html_email_template_name)
