From f6c5c11a1444870139a64a752e83023b8820e34c Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Mon, 7 Sep 2015 10:01:50 +0200 Subject: [PATCH] V aktualnim zadani zobraz jenom zadane ulohy --- seminar/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/views.py b/seminar/views.py index b57e9e8a..6c7dfa69 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -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')