From 17893bf362d4edcf02b872845563fc261c2d3e06 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Thu, 17 Aug 2023 11:42:06 +0200 Subject: [PATCH] fix club order --- scores/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scores/views.py b/scores/views.py index b0aeef9..0ede5a7 100644 --- a/scores/views.py +++ b/scores/views.py @@ -45,7 +45,7 @@ def club(request, club_id): def club_name(request, club_name): club = get_object_or_404(Club, name__iexact=club_name.lower()) - tournaments = Tournament.objects.filter(club=club.id) + tournaments = Tournament.objects.filter(club=club.id).order_by('id').reverse() template = loader.get_template('scores/club.html') context = { 'club': club, @@ -57,7 +57,7 @@ def tv_club_name(request, club_name): club = get_object_or_404(Club, name__iexact=club_name.lower()) tournaments = Tournament.objects.filter(club=club.id) - template = loader.get_template('scores/club.html') + template = loader.get_template('scores/club.html').order_by('id').reverse() context = { 'club': club, 'tournaments': tournaments,