|
@@ -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')\
|
|
|
+ .annotate(end=Max('membership_fees__end_date'))\
|
|
|
.filter(end__in=end_dates)
|
|
|
self.stdout.write(
|
|
|
"Got {number} members.".format(number=members.count()))
|