From 843025d63504a709e3885585d4c56a9b6dd6b330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 15 Nov 2021 21:21:03 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20zobrazov=C3=A1n=C3=AD=20neve=C5=99ejn?= =?UTF-8?q?=C3=BDch=20=C4=8D=C3=ADsel=20v=20archivu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/templates/seminar/archiv/cisla.html | 6 +++--- seminar/views/views_all.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/seminar/templates/seminar/archiv/cisla.html b/seminar/templates/seminar/archiv/cisla.html index 4cba99ee..35fd5666 100644 --- a/seminar/templates/seminar/archiv/cisla.html +++ b/seminar/templates/seminar/archiv/cisla.html @@ -35,9 +35,9 @@ Jednotlivá čísla: Výsledková listina diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index 9392f49a..85a7f9f2 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -630,6 +630,8 @@ class ArchivView(generic.ListView): context = super(ArchivView, self).get_context_data(**kwargs) cisla = Cislo.objects.filter(poradi=1) + if not self.request.user.je_org: + cisla = cisla.filter(verejne_db=True) urls ={} for i, c in enumerate(cisla):