Use html emails
This commit is contained in:
parent
d44e38c04c
commit
93798358ea
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue