Parcourir la source

Fix crash on member registration

There were two bugs :

- kwargs do not have to be forwarded to send_templated_email
- template name was wrong
Jocelyn Delalande il y a 6 ans
Parent
commit
2eb90b1988
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      coin/members/models.py

+ 2 - 2
coin/members/models.py

@@ -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):