diff --git a/backend/backend_api/models.py b/backend/backend_api/models.py index 726e7f1..8c7678a 100644 --- a/backend/backend_api/models.py +++ b/backend/backend_api/models.py @@ -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