From 4a5f48a834f7f6cdbd2c0b99237da8a599c35e17 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Mon, 21 Oct 2024 19:17:03 +0200 Subject: [PATCH] Fix single tournament render Signed-off-by: Emmy D'Anello --- tfjm/context_processors.py | 7 ++++--- tfjm/templates/navbar.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tfjm/context_processors.py b/tfjm/context_processors.py index 2444d66..2f0a043 100644 --- a/tfjm/context_processors.py +++ b/tfjm/context_processors.py @@ -18,11 +18,12 @@ def tfjm_context(request): 'ML_MANAGEMENT': settings.ML_MANAGEMENT, 'PAYMENT_MANAGEMENT': settings.PAYMENT_MANAGEMENT, 'RECOMMENDED_SOLUTIONS_COUNT': settings.RECOMMENDED_SOLUTIONS_COUNT, - 'SINGLE_TOURNAMENT': - Tournament.objects.first() if Tournament.objects.exists() and settings.SINGLE_TOURNAMENT else None, + 'SINGLE_TOURNAMENT': settings.SINGLE_TOURNAMENT, 'HEALTH_SHEET_REQUIRED': settings.HEALTH_SHEET_REQUIRED, 'VACCINE_SHEET_REQUIRED': settings.VACCINE_SHEET_REQUIRED, 'MOTIVATION_LETTER_REQUIRED': settings.MOTIVATION_LETTER_REQUIRED, 'SUGGEST_ANIMATH': settings.SUGGEST_ANIMATH, - } + }, + 'TFJM_TOURNAMENT': + Tournament.objects.first() if Tournament.objects.exists() and settings.SINGLE_TOURNAMENT else None, } diff --git a/tfjm/templates/navbar.html b/tfjm/templates/navbar.html index 29a3500..21915df 100644 --- a/tfjm/templates/navbar.html +++ b/tfjm/templates/navbar.html @@ -18,7 +18,7 @@