From 4720660cff5a4b1e5871af4ea1af6b47a4364777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Wed, 15 Nov 2023 10:40:52 +0100 Subject: [PATCH] Fix wrong playrange ordering --- games/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/games/views.py b/games/views.py index 8046ff5..b188614 100644 --- a/games/views.py +++ b/games/views.py @@ -155,7 +155,9 @@ def view_game(request, game_id=None): .order_by("year_released") ) - sessions = Session.objects.filter(purchase__edition__game=game) + sessions = Session.objects.filter(purchase__edition__game=game).order_by( + "timestamp_start" + ) session_count = sessions.count() playrange_start = sessions.first().timestamp_start.strftime("%b %Y")