From: Guillaume Pellerin Date: Thu, 25 Aug 2016 16:10:00 +0000 (+0200) Subject: Fix home slider images X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=54ba8bf660a039785fd7d329ca3d585f0d643d46;p=mezzo.git Fix home slider images --- diff --git a/app/templates/home/inc/slider.html b/app/templates/home/inc/slider.html index f9ee413c..4a91e90b 100644 --- a/app/templates/home/inc/slider.html +++ b/app/templates/home/inc/slider.html @@ -4,10 +4,10 @@
{% for slider in home.dynamiccontenthomeslider_set.all %} {{ slider.content_object }} - {% with slider.content_object.images.all|get_type:'slider' as image %} - {% if image %} + {% with slider.content_object.images.all|get_type:'slider' as images %} + {% if images %}

{{ slider.content_object.title }}


-
+
{{ image.credits }}
{{ slider.content_object.title }}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------