Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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

Change History (5)

comment:1 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: newclosed

In d392fc29:

Fixed #28802 -- Fixed typo in docs/topics/auth/default.txt.

comment:2 by Tim Graham <timograham@…>, 6 years ago

In 2b3907cf:

[2.0.x] Fixed #28802 -- Fixed typo in docs/topics/auth/default.txt.

Backport of d392fc293c9439c19451e152f9560f24d1659563 from master

comment:3 by Tim Graham <timograham@…>, 6 years ago

In 18324f2:

[1.11.x] Fixed #28802 -- Fixed typo in docs/topics/auth/default.txt.

Backport of d392fc293c9439c19451e152f9560f24d1659563 from master

comment:4 by Tim Graham <timograham@…>, 6 years ago

In 1738592:

[1.10.x] Fixed #28802 -- Fixed typo in docs/topics/auth/default.txt.

Backport of d392fc293c9439c19451e152f9560f24d1659563 from master

comment:5 by Tim Graham <timograham@…>, 6 years ago

In 97dfc30f:

[1.8.x] Fixed #28802 -- Fixed typo in docs/topics/auth/default.txt.

Backport of d392fc293c9439c19451e152f9560f24d1659563 from master

Note: See TracTickets for help on using tickets.
Back to Top