From bae27c59d272a7f99d79d2a7a1a8aa12488aa7bd Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 25 Mar 2024 18:42:26 +0100 Subject: [PATCH] Remove loser bracket from navigation --- tournaments/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/views.py b/tournaments/views.py index 769f0d5..3b3b1ac 100644 --- a/tournaments/views.py +++ b/tournaments/views.py @@ -42,7 +42,7 @@ def tournament(request, tournament_id): group_stage_id = request.GET.get('group_stage') live_matches = list(tournament.live_matches(False, group_stage_id, round_id)) - rounds = tournament.round_set.order_by('index') + rounds = tournament.round_set.filter(loser=None).order_by('index') group_stages = tournament.groupstage_set.order_by('index') return render(request, 'tournaments/matches.html', { 'tournament': tournament,