Fix url reverse v exportu

This commit is contained in:
Tomas Gavenciak 2015-05-17 02:08:12 +02:00
parent ab7878393f
commit 0ec8141b54

View file

@ -13,7 +13,7 @@ class ExportIndexView(generic.base.TemplateView):
context['exports'] = [] context['exports'] = []
for r in Rocnik.objects.all(): for r in Rocnik.objects.all():
if r.verejna_cisla(): if r.verejna_cisla():
url = reverse('seminar:export_rocnik', kwargs={'prvni_rok': r.prvni_rok}) url = reverse('seminar_export_rocnik', kwargs={'prvni_rok': r.prvni_rok})
context['exports'].append(url.split('/')[-1]) context['exports'].append(url.split('/')[-1])
return context return context