Razeni temat na strance s tematy

This commit is contained in:
Bc. Petr Pecha 2015-09-10 11:42:51 +02:00
parent bba1249fc9
commit 18f97fcb77

View file

@ -33,7 +33,7 @@ def ZadaniTemataView(request):
nastaveni = get_object_or_404(Nastaveni)
return render(request, 'seminar/zadani/Temata.html',
{
'temata': Problem.objects.filter(typ=Problem.TYP_TEMA, stav=Problem.STAV_ZADANY, cislo_zadani__rocnik=nastaveni.aktualni_rocnik),
'temata': Problem.objects.filter(typ=Problem.TYP_TEMA, stav=Problem.STAV_ZADANY, cislo_zadani__rocnik=nastaveni.aktualni_rocnik).order_by('kod'),
}
)