Browse Source

Fix url reverse v exportu

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
0ec8141b54
  1. 2
      seminar/export.py

2
seminar/export.py

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

Loading…
Cancel
Save