def save(self,
             subject_template_name='registration/password_reset_subject.txt',
             email_template_name='api_password_reset_email.html',
             token_generator=default_token_generator,
             from_email=None):
        email = self.email
        reset_url = self.reset_url
        active_users = User.objects.filter(email__iexact=email, is_active=True)

        for user in active_users:
            # Make sure that no email is sent to a user that actually has
            # a password marked as unusable
            if not user.has_usable_password():
                continue
            subject, email = get_password_reset_email(
                user, reset_url, subject_template_name, email_template_name)
            send_mail(subject, email, from_email, [user.email])
Generates a one-use only link for resetting password and sends to the
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/serializers/password_reset_serializer.py/PasswordReset.save