From fad0dfe7e4d3fedc09a2ecf87287cdba251b10d3 Mon Sep 17 00:00:00 2001 From: Adibov Date: Tue, 5 Dec 2023 00:51:23 +0330 Subject: [PATCH] fix(backend): only show approved payments in its participants --- backend/backend_api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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