From 727bd10aeb5076ec4a0b5c4723ba1482f941828f Mon Sep 17 00:00:00 2001 From: Qwann Date: Mon, 27 Aug 2018 15:51:29 +0200 Subject: [PATCH] hotfix: place and tags show correctly --- event/templates/event/activity_summary.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/event/templates/event/activity_summary.html b/event/templates/event/activity_summary.html index 1996255..1513a7f 100644 --- a/event/templates/event/activity_summary.html +++ b/event/templates/event/activity_summary.html @@ -4,11 +4,13 @@ - {% if activity.places.all %} - {{ activity.places.all |join:", "}} + {% with activity|get_herited:'places' as places %} + {% if places.all %} + {{ places.all |join:", "}} {% else %}    -    {% endif %} + {% endwith %} public @@ -36,11 +38,13 @@ - {% if activity.tags.all %} - {{ activity.tags.all |join:", "}} + {% with activity|get_herited:'tags' as tags %} + {% if tags.all %} + {{ tags.all |join:", "}} {% else %}    -    {% endif %} + {% endwith %} {% if has_perm %}