Skip to content

Commit

Permalink
fix: fix problem with canceled auctions showing on seller's dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
sandronadiradze committed Nov 4, 2024
1 parent b916f40 commit 8e8d9dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auction/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,11 @@ def get_queryset(self):
queryset = (
Auction.objects.select_related("statistics", "category")
.prefetch_related("tags")
.filter(bids__author=user.id, start_date__lte=timezone.now())
.filter(
bids__author=user.id,
start_date__lte=timezone.now(),
status=StatusChoices.LIVE,
)
.distinct()
)

Expand Down

0 comments on commit 8e8d9dc

Please sign in to comment.