Browse Source

Razeni uloh a temat podle kodu

remotes/origin/vysl deploy-prod-2015-09-10-11-32-xlfd
Bc. Petr Pecha 9 years ago
parent
commit
bba1249fc9
  1. 6
      seminar/views.py

6
seminar/views.py

@ -18,9 +18,9 @@ from itertools import groupby
def AktualniZadaniView(request):
nastaveni = get_object_or_404(Nastaveni)
problemy = Problem.objects.filter(cislo_zadani=nastaveni.aktualni_cislo).filter(stav = 'zadany')
ulohy = problemy.filter(typ = 'uloha')
serialy = problemy.filter(typ = 'serial')
temata = problemy.filter(typ = 'tema')
ulohy = problemy.filter(typ = 'uloha').order_by('kod')
serialy = problemy.filter(typ = 'serial').order_by('kod')
temata = problemy.filter(typ = 'tema').order_by('kod')
jednorazove_problemy = [ulohy, serialy]
return render(request, 'seminar/zadani/AktualniZadani.html',
{'nastaveni': nastaveni,

Loading…
Cancel
Save