Skip to content

Commit

Permalink
chore: remove auctions from seller dashboard if the bids that they ha…
Browse files Browse the repository at this point in the history
…ve created on that auciton have the only status of cancelled
  • Loading branch information
sandronadiradze committed Nov 5, 2024
1 parent a50bd97 commit ba50596
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions auction/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit ba50596

Please sign in to comment.