Sort purchases also by date purchased
This commit is contained in:
parent
c747cd1fd8
commit
f9e37e9b1e
|
@ -7,6 +7,7 @@
|
||||||
## Improved
|
## Improved
|
||||||
* mark refunded purchases red on game overview
|
* mark refunded purchases red on game overview
|
||||||
* increase session count on game overview when starting a new session
|
* 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
|
## Fixed
|
||||||
* Fix title not being displayed on the Recent sessions page
|
* Fix title not being displayed on the Recent sessions page
|
||||||
|
|
|
@ -164,7 +164,7 @@ def view_game(request, game_id=None):
|
||||||
editions = (
|
editions = (
|
||||||
Edition.objects.filter(game=game)
|
Edition.objects.filter(game=game)
|
||||||
.prefetch_related(game_purchases_prefetch)
|
.prefetch_related(game_purchases_prefetch)
|
||||||
.order_by("year_released")
|
.order_by("year_released", "purchase__date_purchased")
|
||||||
)
|
)
|
||||||
|
|
||||||
sessions = Session.objects.prefetch_related("device").filter(
|
sessions = Session.objects.prefetch_related("device").filter(
|
||||||
|
|
Loading…
Reference in New Issue