Skip to content

Commit

Permalink
fix(backend): only show approved payments in its participants
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov committed Dec 4, 2023
1 parent d3297d5 commit fad0dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def __str__(self):
@property
def participants(self):
users = []
for payment in self.payment_set.all():
for payment in self.payment_set.filter(status=Payment.PaymentStatus.PAYMENT_CONFIRMED):
users.append(payment.user)
return users

Expand Down

0 comments on commit fad0dfe

Please sign in to comment.