incuna / django-user-management

User management model mixins and api views.
BSD 2-Clause "Simplified" License
57 stars 24 forks source link

Replace formatted translatable strings with templates for better flexibility #127

Open LilyFoote opened 9 years ago

LilyFoote commented 9 years ago

The password_reset_email_handler and validation_email_handler each define a subject that is formatted with the site.domain. This is difficult to override when the domain is unwanted.

We could instead use a django template, to which we pass the site.domain in a context. This would allow a project to replace the subject completely, ignoring the context.

kevinetienne commented 9 years ago

Can the subject be passed through the notification? Or be overridden by the notification if present?