supporters should only return people with active transactions, not e.g. canceled ones
parent
775d1d4af2
commit
2bf67671ad
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue