class PasswordResetForm
A form for generating and emailing a one-time use link to reset a user’s password.
-
send_email(subject_template_name, email_template_name, context, from_email, to_email, html_email_template_name=None) -
Uses the arguments to send an
EmailMultiAlternatives. Can be overridden to customize how the email is sent to the user.Parameters: - subject_template_name – the template for the subject.
- email_template_name – the template for the email body.
-
context – context passed to the
subject_template,email_template, andhtml_email_template(if it is notNone). - from_email – the sender’s email.
- to_email – the email of the requester.
-
html_email_template_name – the template for the HTML body; defaults to
None, in which case a plain text email is sent.
By default,
save()populates thecontextwith the same variables thatpassword_reset()passes to its email context.
Please login to continue.