supporters should only return people with active transactions, not e.g. canceled ones

pull/1/head
Andromeda Yelton 2012-05-16 10:24:03 -04:00
parent 775d1d4af2
commit 2bf67671ad
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class Campaign(models.Model):
def supporters(self):
"""nb: returns (distinct) supporter IDs, not supporter objects"""
translist = self.transactions().values_list('user', flat=True).distinct()
translist = self.transactions().filter(status=TRANSACTION_STATUS_ACTIVE).values_list('user', flat=True).distinct()
return translist
def effective_premiums(self):