Browse Source

Fix defaultní obrázek v archivu

middleware_test
Jonas Havelka 3 years ago
parent
commit
c6000f0ab6
  1. 2
      seminar/views/views_all.py

2
seminar/views/views_all.py

@ -632,7 +632,7 @@ class ArchivView(generic.ListView):
if c.titulka_nahled: if c.titulka_nahled:
urls[c.rocnik] = c.titulka_nahled.url urls[c.rocnik] = c.titulka_nahled.url
else: else:
urls[c.rocnik] = op.join(settings.MEDIA_URL, "cislo", "png", "default.png") urls[c.rocnik] = op.join(settings.STATIC_URL, "images", "no-picture.png")
context["object_list"] = urls context["object_list"] = urls

Loading…
Cancel
Save