From 5e908d7efb28ca5124f6a1bcd6367143111836ff Mon Sep 17 00:00:00 2001 From: krmax44 Date: Tue, 15 Mar 2022 14:32:03 +0100 Subject: [PATCH] fix section card image subject location --- froide_govplan/templates/froide_govplan/plugins/sections.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/froide_govplan/templates/froide_govplan/plugins/sections.html b/froide_govplan/templates/froide_govplan/plugins/sections.html index 3864174..ca29025 100644 --- a/froide_govplan/templates/froide_govplan/plugins/sections.html +++ b/froide_govplan/templates/froide_govplan/plugins/sections.html @@ -5,7 +5,7 @@ {% for section in sections %} {% if section.image %} #govsection-{{ section.pk }}::after { - background-image: url('{% thumbnail section.image 350x150 crop subject_location=instance.picture.subject_location %}'); + background-image: url('{% thumbnail section.image 350x150 crop subject_location=section.image.subject_location %}'); } {% endif %} {% endfor %}