mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-24 23:40:32 +02:00
Add single tournament mode
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
from django.conf import settings
|
||||
|
||||
from participation.models import Tournament
|
||||
|
||||
|
||||
def tfjm_context(request):
|
||||
return {
|
||||
'TFJM_APP': settings.TFJM_APP,
|
||||
'SINGLE_TOURNAMENT': Tournament.objects.first() if Tournament.objects.exists() and settings.TFJM_APP else None,
|
||||
}
|
||||
|
Reference in New Issue
Block a user