From 45813f5d323301d5173d5cf0afe640f704adada7 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 3 Apr 2024 16:22:06 +0200 Subject: [PATCH] Fixes renaming --- tournaments/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/views.py b/tournaments/views.py index 591c9c0..6d4021c 100644 --- a/tournaments/views.py +++ b/tournaments/views.py @@ -75,7 +75,7 @@ def tournament(request, tournament_id): group_stage_id = request.GET.get('group_stage') match_groups = tournament.match_groups(False, group_stage_id, round_id) - rounds = tournament.round_set.filter(loser=None).order_by('-index') + rounds = tournament.round_set.filter(parent=None).order_by('-index') group_stages = tournament.groupstage_set.order_by('index') return render(request, 'tournaments/matches.html', {