From 3ab1e9fda8e22812190817b1e6bf1a01e98084f2 Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 24 Jun 2024 10:33:56 +0200 Subject: [PATCH] Show tournaments with a club --- tournaments/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/views.py b/tournaments/views.py index 1a25bb4..c3a1396 100644 --- a/tournaments/views.py +++ b/tournaments/views.py @@ -42,7 +42,7 @@ def index(request): ) def tournaments_query(query, club_id, ascending): - queries = [query, Q(is_private=False, is_deleted=False)] + queries = [query, Q(is_private=False, is_deleted=False, event__club__isnull=False)] club = None if club_id: