Browse Source

V aktualnim zadani zobraz jenom zadane ulohy

remotes/origin/vysl
Bc. Petr Pecha 9 years ago
parent
commit
f6c5c11a14
  1. 2
      seminar/views.py

2
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')

Loading…
Cancel
Save