Unverified Commit 159928db authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

only include currently active committeemembers in mailing lists

parent 78944725
from django.core import validators
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from activemembers.models import Committee
......@@ -24,7 +25,8 @@ class MailingList(models.Model):
yield member.user.email
for committee in self.committees.all().prefetch_related("members"):
for member in committee.members.all():
for member in committee.members.exclude(
yield member.user.email
for address in self.addresses.all():
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