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 %}