2024-06-07 11:51:24 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
2024-06-07 13:18:59 +00:00
|
|
|
from participation.models import Tournament
|
|
|
|
|
2024-06-07 11:51:24 +00:00
|
|
|
|
|
|
|
def tfjm_context(request):
|
|
|
|
return {
|
2024-06-07 14:35:08 +00:00
|
|
|
'TFJM': {
|
|
|
|
'APP': settings.TFJM_APP,
|
|
|
|
'ML_MANAGEMENT': settings.ML_MANAGEMENT,
|
|
|
|
'PAYMENT_MANAGEMENT': settings.PAYMENT_MANAGEMENT,
|
|
|
|
'SINGLE_TOURNAMENT':
|
|
|
|
Tournament.objects.first() if Tournament.objects.exists() and settings.TFJM_APP else None,
|
2024-06-07 15:20:06 +00:00
|
|
|
'HEALTH_SHEET_REQUIRED': settings.HEALTH_SHEET_REQUIRED,
|
|
|
|
'VACCINE_SHEET_REQUIRED': settings.VACCINE_SHEET_REQUIRED,
|
|
|
|
'MOTIVATION_LETTER_REQUIRED': settings.MOTIVATION_LETTER_REQUIRED,
|
2024-06-07 16:39:16 +00:00
|
|
|
'SUGGEST_ANIMATH': settings.SUGGEST_ANIMATH,
|
2024-06-07 14:35:08 +00:00
|
|
|
}
|
2024-06-07 11:51:24 +00:00
|
|
|
}
|