Razeni uloh a temat podle kodu
This commit is contained in:
parent
c19167a197
commit
bba1249fc9
1 changed files with 3 additions and 3 deletions
|
@ -18,9 +18,9 @@ from itertools import groupby
|
||||||
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).filter(stav = 'zadany')
|
problemy = Problem.objects.filter(cislo_zadani=nastaveni.aktualni_cislo).filter(stav = 'zadany')
|
||||||
ulohy = problemy.filter(typ = 'uloha')
|
ulohy = problemy.filter(typ = 'uloha').order_by('kod')
|
||||||
serialy = problemy.filter(typ = 'serial')
|
serialy = problemy.filter(typ = 'serial').order_by('kod')
|
||||||
temata = problemy.filter(typ = 'tema')
|
temata = problemy.filter(typ = 'tema').order_by('kod')
|
||||||
jednorazove_problemy = [ulohy, serialy]
|
jednorazove_problemy = [ulohy, serialy]
|
||||||
return render(request, 'seminar/zadani/AktualniZadani.html',
|
return render(request, 'seminar/zadani/AktualniZadani.html',
|
||||||
{'nastaveni': nastaveni,
|
{'nastaveni': nastaveni,
|
||||||
|
|
Loading…
Reference in a new issue