mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-02-11 09:01:20 +00:00
11 lines
285 B
Python
11 lines
285 B
Python
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,
|
|
}
|