37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
|
|
from .models import *
|
|
from db.main.models import *
|
|
from db.administration.models import *
|
|
from db.league.models import *
|
|
from db.calendar.models import *
|
|
from db.gpb.models import *
|
|
from db.tournaments.models import *
|
|
from db.membership.models import *
|
|
from db.youth.models import *
|
|
from db.atu.models import *
|
|
|
|
|
|
def load_config(request):
|
|
return {
|
|
'nav': Button.objects.all(),
|
|
'gpw': GrandPrixW.load(),
|
|
'posts': Post.objects.all(),
|
|
'czlonkowie': Member.objects.all(),
|
|
'statut': Statute.objects.first(),
|
|
'ogloszenia': Announcement.objects.all(),
|
|
'protokoly': Protocol.objects.all(),
|
|
'regulaminy': Regulation.objects.all(),
|
|
'rodos': RODO.objects.all(),
|
|
'leagues': {
|
|
'Wyniki I Ligi': FirstLeague.objects.all(),
|
|
'Wyniki II Ligi': SecondLeague.objects.all(),
|
|
'Wyniki III Ligi': ThirdLeague.objects.all()
|
|
},
|
|
'calendars': Calendar.objects.all(),
|
|
'gpb': GrandPrixB.load(),
|
|
'tournaments': Tournament.objects.all(),
|
|
'memberships': Membership.objects.all(),
|
|
'youth': Youth.load(),
|
|
'atu': Atu.load()
|
|
}
|