Commit 00235420 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix problem with user mailaddresses when sending a newsletter

parent 95373005
......@@ -73,7 +73,7 @@ def admin_send(request, pk):
recipients = [member.user.email for member in
Member.objects.all().filter(
receive_newsletter=True, language=language[0])
if member.is_active() is True]
if member.is_active() is True and member.user.email]
subject = newsletter.title
......
Supports Markdown
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