Browse Source

Razeni temat na strance s tematy

remotes/origin/vysl deploy-prod-2015-09-10-11-43-xlfd
Bc. Petr Pecha 9 years ago
parent
commit
18f97fcb77
  1. 2
      seminar/views.py

2
seminar/views.py

@ -33,7 +33,7 @@ def ZadaniTemataView(request):
nastaveni = get_object_or_404(Nastaveni) nastaveni = get_object_or_404(Nastaveni)
return render(request, 'seminar/zadani/Temata.html', 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'),
} }
) )

Loading…
Cancel
Save