#28802 closed Bug (fixed)
PasswordResetForm has method send_email in the documentation but send_mail is the correct method
Reported by: | Daniel Clayton | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | 1.11 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
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
Note:
See TracTickets
for help on using tickets.
In d392fc29: