From b1539258d95cbdc0221518b526235fff8e8c6345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kate=C5=99ina=20=C4=8C?= Date: Tue, 16 Feb 2021 20:10:34 +0100 Subject: [PATCH] =?UTF-8?q?vydan=C3=BD=20=C4=8Dl=C3=A1nek=20je=20vy=C5=99e?= =?UTF-8?q?=C5=A1en=C3=BD,=20ne=20zadan=C3=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/views_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index 42e982f5..24d31ecc 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -1382,7 +1382,7 @@ class ClankyResitelView(generic.ListView): # FIXME: QuerySet nenĂ­ pole! def get_queryset(self): - clanky = Clanek.objects.filter(stav=Problem.STAV_ZADANY).select_related('cislo__rocnik').order_by('-cislo__rocnik__rocnik') + clanky = Clanek.objects.filter(stav=Problem.STAV_VYRESENY).select_related('cislo__rocnik').order_by('-cislo__rocnik__rocnik') queryset = [] skupiny_clanku = group_by_rocnik(clanky) for skupina in skupiny_clanku: