#28802: PasswordResetForm has method send_email in the documentation but
send_mail
is the correct method
------------------------------------------+------------------------
Reporter: daniel-clayton | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------+------------------------
The documentation for PasswordResetForm has a typo.
[https://docs.djangoproject.com/en/1.11/topics/auth/default/#django.contrib.auth.forms.PasswordResetForm]
It lists
{{{
send_email(subject_template_name, email_template_name, context,
from_email, to_email, html_email_template_name=None)
}}}
as a method, the correct method name is:
{{{
send_mail(subject_template_name, email_template_name, context, from_email,
to_email, html_email_template_name=None)
}}}
as seen here
[https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L246]
--
Ticket URL: <https://code.djangoproject.com/ticket/28802>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/057.10baa55b59dc8ce03142ff4d2c11997d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.