Parcourir la source

'self' does not exists

Alexandre Aubin il y a 6 ans
Parent
commit
d651391d65
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      coin/members/models.py

+ 1 - 1
coin/members/models.py

@@ -74,7 +74,7 @@ def send_registration_notification(sender, user, request=None, **kwargs):
             to=settings.NOTIFICATION_EMAILS,
             subject_template='members/emails/new_member_subject.txt',
             body_template='members/emails/new_member_email.html',
-            context={'member': self, 'edit_link': edit_link},
+            context={'member': user, 'edit_link': edit_link},
             **kwargs)