Use html emails

This commit is contained in:
Christian Cueni 2020-02-25 14:54:02 +01:00
parent d44e38c04c
commit 93798358ea
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ def home(request):
class SetPasswordView(PasswordResetView): class SetPasswordView(PasswordResetView):
email_template_name = 'registration/registration_set_password_email.html' html_email_template_name = 'registration/registration_set_password_email.html'
subject_template_name = 'registration/registration_set_password_subject.txt' subject_template_name = 'registration/registration_set_password_subject.txt'
success_url = reverse_lazy('registration_set_password_done') success_url = reverse_lazy('registration_set_password_done')
template_name = 'registration/registration_set_password_form.html' template_name = 'registration/registration_set_password_form.html'
@ -52,7 +52,7 @@ class SetPasswordCompleteView(PasswordResetCompleteView):
# legacy # legacy
class LegacySetPasswordView(PasswordResetView): class LegacySetPasswordView(PasswordResetView):
email_template_name = 'registration/set_password_email.html' html_email_template_name = 'registration/set_password_email.html'
subject_template_name = 'registration/set_password_subject.txt' subject_template_name = 'registration/set_password_subject.txt'
success_url = reverse_lazy('set_password_done') success_url = reverse_lazy('set_password_done')
template_name = 'registration/set_password_form.html' template_name = 'registration/set_password_form.html'