V aktualnim zadani zobraz jenom zadane ulohy

This commit is contained in:
Bc. Petr Pecha 2015-09-07 10:01:50 +02:00
parent 6c6417b23f
commit f6c5c11a14

View file

@ -14,7 +14,7 @@ from . import utils
def AktualniZadaniView(request):
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')
temata = problemy.filter(typ = 'tema')
serialy = problemy.filter(typ = 'serial')