Sort purchases also by date purchased
This commit is contained in:
parent
c747cd1fd8
commit
f9e37e9b1e
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue