1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-02-06 06:13:02 +00:00
plateforme-tfjm2/tfjm/context_processors.py

11 lines
285 B
Python
Raw Normal View History

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,
}