Sort purchases also by date purchased
Django CI/CD / test (push) Successful in 1m4s Details
Django CI/CD / build-and-push (push) Has been cancelled Details

This commit is contained in:
Lukáš Kucharczyk 2024-02-18 09:02:08 +01:00
parent c747cd1fd8
commit f9e37e9b1e
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
## Improved
* mark refunded purchases red on game overview
* increase session count on game overview when starting a new session
* game overview: sort purchases also by date purchased (on top of date released)
## Fixed
* Fix title not being displayed on the Recent sessions page

View File

@ -164,7 +164,7 @@ def view_game(request, game_id=None):
editions = (
Edition.objects.filter(game=game)
.prefetch_related(game_purchases_prefetch)
.order_by("year_released")
.order_by("year_released", "purchase__date_purchased")
)
sessions = Session.objects.prefetch_related("device").filter(