From f1c686774ca4484b3e9bb9badba562be7be80610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Koci=C3=A1n?= Date: Sun, 13 Sep 2015 20:28:38 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20zobraz=20t=C3=A9mata=20v=20ro=C4=8Dn?= =?UTF-8?q?=C3=ADku,=20i=20kdy=C5=BE=20nem=C3=A1=20v=C3=BDsledky?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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