From ba505961619fd831bf3b673bd763ba1b9e0389ac Mon Sep 17 00:00:00 2001 From: sandronadiradze Date: Tue, 5 Nov 2024 13:13:21 +0400 Subject: [PATCH] chore: remove auctions from seller dashboard if the bids that they have created on that auciton have the only status of cancelled --- auction/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/auction/views.py b/auction/views.py index 6938902..c5af2f1 100755 --- a/auction/views.py +++ b/auction/views.py @@ -360,6 +360,11 @@ def get_queryset(self): .prefetch_related("tags") .filter( bids__author=user.id, + bids__status__in=[ + BidStatusChoices.PENDING, + BidStatusChoices.APPROVED, + BidStatusChoices.REJECTED, + ], start_date__lte=timezone.now(), status=StatusChoices.LIVE, )