|
@ -629,10 +629,12 @@ class ArchivView(generic.ListView): |
|
|
urls ={} |
|
|
urls ={} |
|
|
|
|
|
|
|
|
for i, c in enumerate(cisla): |
|
|
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: |
|
|
if c.titulka_nahled: |
|
|
urls[c.rocnik] = c.titulka_nahled.url |
|
|
urls[c.rocnik] = c.titulka_nahled.url |
|
|
else: |
|
|
|
|
|
urls[c.rocnik] = op.join(settings.STATIC_URL, "images", "no-picture.png") |
|
|
|
|
|
|
|
|
|
|
|
context["object_list"] = urls |
|
|
context["object_list"] = urls |
|
|
|
|
|
|
|
|