From c2a2bef69998b7d24fe132f1f98f552ea6f1a1f4 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sun, 13 May 2018 21:33:57 -0400 Subject: [PATCH] Fix bug recording emails triggered by event comments --- get_together/views/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_together/views/events.py b/get_together/views/events.py index 8587036..95d7c39 100644 --- a/get_together/views/events.py +++ b/get_together/views/events.py @@ -303,8 +303,8 @@ def send_comment_emails(comment): ) EmailRecord.objects.create( sender=comment.author.user, - recipient=attendee.user.user, - email=attendee.user.user.email, + recipient=attendee.user, + email=attendee.user.email, subject=email_subject, body=email_body_text, ok=success