registration_backend/forms.py: fix passing of the HTML template to the send_mail function

This commit is contained in:
Benjamin Dauvergne 2015-04-10 11:46:38 +02:00
parent c8e10def06
commit 83d8390623
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class RegistrationForm(Form):
ctx_dict)
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL,
[data['email']], fail_silently=True,
html_message=message)
html_message=html_message)
else:
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL,
[data['email']], fail_silently=True)