Fix: zobraz témata v ročníku, i když nemá výsledky
This commit is contained in:
parent
2427bb7a09
commit
f1c686774c
1 changed files with 4 additions and 2 deletions
|
@ -166,10 +166,12 @@ class RocnikView(generic.DetailView):
|
|||
|
||||
vysledkovka.append(v)
|
||||
|
||||
temata_v_rocniku = Problem.objects.filter(typ=Problem.TYP_TEMA, cislo_zadani__rocnik=context['rocnik']).order_by('kod')
|
||||
|
||||
context['vysledkovka'] = vysledkovka
|
||||
context['temata_v_rocniku'] = temata_v_rocniku
|
||||
|
||||
temata_v_rocniku = Problem.objects.filter(typ=Problem.TYP_TEMA, cislo_zadani__rocnik=context['rocnik']).order_by('kod')
|
||||
context['temata_v_rocniku'] = temata_v_rocniku
|
||||
|
||||
return context
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue