diff --git a/seminar/views.py b/seminar/views.py index 8762861b..955668e4 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -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