#36110: Unable to customize kwargs passed to PasswordResetForm
EmailMultiAlternatives
------------------------------+--------------------------------------
Reporter: Claude Paroz | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: email | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by Tim Graham):
The use case was mentioned in #17431 where `PasswordResetForm.send_mail()`
was added. I agree it's not so nice to have to override the entire method,
however, the test added in a00b78b1e2ac9bf271d55c1799138a27f5e0d03e adds
Reply-To and does not look so ugly.
Also note that much this form's API is controlled in the
[https://github.com/django/django/blob/1c29ab24df876c47317713f9dacd5bc51cf90857/django/contrib/auth/views.py#L215-L243
view via form.save() kwargs]. In light of that, it looks a bit out of
place to add a method hook for the proposed purpose.
--
Ticket URL: <https://code.djangoproject.com/ticket/36110#comment:4>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070194806e1fd5-fad6c9f2-feaa-420c-a1bb-abd90adb5809-000000%40eu-central-1.amazonses.com.