
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 *
from db.mbkb.models import *


def load_config(request):
    return {
        'nav': Button.objects.filter(published=True),
        'uppernav': UpperButton.objects.filter(published=True),
        'gpws': GrandPrixW.get_current(),
        'posts': Post.objects.filter(published=True),
        'daneadresowe': Data.load(),
        '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.filter(published=True),
        'gpb': GrandPrixB.load(),
        'tournaments': Tournament.objects.filter(published=True),
        'memberships': Membership.objects.filter(published=True),
        'youth': Youth.objects.filter(published=True),
        'mbkb': MBKB.objects.filter(published=True),
        'atus': Atu.objects.filter(published=True),
        'footer': Footer.Get()
    }
