diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index d6ca82bf..ec10b173 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -629,10 +629,12 @@ class ArchivView(generic.ListView): urls ={} for i, c in enumerate(cisla): + # Výchozí nastavení + if c.rocnik not in urls: + urls[c.rocnik] = op.join(settings.STATIC_URL, "images", "no-picture.png") + # NOTE: tohle možná nastavuje poslední titulku if c.titulka_nahled: urls[c.rocnik] = c.titulka_nahled.url - else: - urls[c.rocnik] = op.join(settings.STATIC_URL, "images", "no-picture.png") context["object_list"] = urls