Have callback for email creation in generic views sending emails
|Reported by:||Alexandre Garnier||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I'd like to use EmailMultiAlternatives mails for my mails to have multipart with text & HTML (for nice looking mails but with simple text support).
But with generic views (and forms) like django.contrib.auth.views.password_reset, I can only give an email_template_name.
It would be nice to have a create_email callback to let me create the Email object that the view send.
Change History (4)
comment:3 Changed 6 years ago by
|Component:||Uncategorized → Generic views|