img_indexes

This commit is contained in:
Jonas Havelka 2025-03-05 17:57:10 +01:00
parent c4679fe261
commit c2f905a1e3
2 changed files with 2 additions and 2 deletions
korektury
templates/korektury/korekturovatko/moduly
views.py

View file

@ -1,4 +1,4 @@
{% for i in img_indexes %}
{% for i in cisla_stran %}
<div class='imgdiv'>
<img
id='img-{{i}}'

View file

@ -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['cisla_stran'] = range(self.object.stran)
context['tagy'] = KorekturaTag.objects.all()
return context