Commit 2eb90b19 authored by jocelyn's avatar jocelyn

Fix crash on member registration

There were two bugs :

- kwargs do not have to be forwarded to send_templated_email
- template name was wrong
parent 2ec4af8b
......@@ -71,11 +71,11 @@ def send_registration_notification(sender, user, request=None, **kwargs):
edit_link = request.build_absolute_uri(relative_link)
if settings.SUBSCRIPTIONS_NOTIFICATION_EMAILS:
utils.send_templated_email(
subject_template='members/emails/new_member_subject.txt',
to=settings.SUBSCRIPTIONS_NOTIFICATION_EMAILS,
subject_template='members/emails/new_member_email_subject.txt',
body_template='members/emails/new_member_email.html',
context={'member': user, 'edit_link': edit_link},
**kwargs)
)
class Member(CoinLdapSyncMixin, AbstractUser):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment