diff --git a/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html b/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html index b6096edf..6f09ed2e 100644 --- a/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html +++ b/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html @@ -1,4 +1,4 @@ -{% for i in img_indexes %} +{% for i in indexy_stran %} <div class='imgdiv'> <img id='img-{{i}}' diff --git a/korektury/views.py b/korektury/views.py index d1be1609..44ab1453 100644 --- a/korektury/views.py +++ b/korektury/views.py @@ -53,7 +53,7 @@ class KorekturyView(generic.DetailView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - context['img_indexes'] = range(self.object.stran) + context['indexy_stran'] = range(self.object.stran) context['tagy'] = KorekturaTag.objects.all() return context