|
@ -14,7 +14,7 @@ from . import utils |
|
|
|
|
|
|
|
|
def AktualniZadaniView(request): |
|
|
def AktualniZadaniView(request): |
|
|
nastaveni = get_object_or_404(Nastaveni) |
|
|
nastaveni = get_object_or_404(Nastaveni) |
|
|
problemy = Problem.objects.filter(cislo_zadani=nastaveni.aktualni_cislo) |
|
|
problemy = Problem.objects.filter(cislo_zadani=nastaveni.aktualni_cislo).filter(stav = 'zadany') |
|
|
ulohy = problemy.filter(typ = 'uloha') |
|
|
ulohy = problemy.filter(typ = 'uloha') |
|
|
temata = problemy.filter(typ = 'tema') |
|
|
temata = problemy.filter(typ = 'tema') |
|
|
serialy = problemy.filter(typ = 'serial') |
|
|
serialy = problemy.filter(typ = 'serial') |
|
|