Commit da9764c5 authored by Baptiste Jonglez's avatar Baptiste Jonglez
Browse files

Only send automated reminder mails to active members

parent b597f02c
......@@ -39,7 +39,8 @@ class Command(BaseCommand):
"following dates : {dates}".format(
dates=[str(d) for d in end_dates]))
members = Member.objects.annotate(end=Max('membership_fees__end_date'))\
members = Member.objects.filter(status='member')\
"Got {number} members.".format(number=members.count()))
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