Export jen verejnych soustredeni

This commit is contained in:
Tomas Gavenciak 2015-06-29 00:39:11 +02:00
parent 944afc5974
commit efea781049

View file

@ -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])