Skip to content

Commit

Permalink
revert lot ordering to pk as hack for #263
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Nov 9, 2024
1 parent b51019d commit e3f019d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auctions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3259,7 +3259,7 @@ def sold_lots_queryset(self):
auctiontos_seller=self.auctiontos_user,
auction=self.auction,
is_deleted=False,
).order_by("custom_lot_number")
).order_by("pk")
)

@property
Expand All @@ -3271,7 +3271,7 @@ def bought_lots_queryset(self):
auctiontos_winner=self.auctiontos_user,
is_deleted=False,
)
.order_by("custom_lot_number")
.order_by("pk")
.annotate(final_price=F("winning_price") * (100 - F("partial_refund_percent")) / 100)
)

Expand Down

0 comments on commit e3f019d

Please sign in to comment.