From efea781049d26146ea9d95e6919ac655c47a5f61 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Mon, 29 Jun 2015 00:39:11 +0200 Subject: [PATCH] Export jen verejnych soustredeni --- seminar/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/export.py b/seminar/export.py index 2e7d6bd2..3d422614 100644 --- a/seminar/export.py +++ b/seminar/export.py @@ -17,7 +17,7 @@ class ExportIndexView(generic.View): url = reverse('seminar_export_rocnik', kwargs={'prvni_rok': r.prvni_rok}) ls.append(url.split('/')[-1]) for s in Soustredeni.objects.all(): - if s.ucastnici.count() >= 1: + if s.ucastnici.count() >= 1 and s.verejne: url = reverse('seminar_export_sous', kwargs={'datum_zacatku': s.datum_zacatku.isoformat()}) ls.append(url.split('/')[-1])