From: Guillaume Pellerin Date: Tue, 17 May 2016 13:22:30 +0000 (+0200) Subject: fix double video X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=28ff7e0ff35ca91f04b119c48085423e0c3ddeb1;p=mezzo.git fix double video --- diff --git a/app/festival/templates/festival/video_detail.html b/app/festival/templates/festival/video_detail.html index 43bb7712..3e426000 100644 --- a/app/festival/templates/festival/video_detail.html +++ b/app/festival/templates/festival/video_detail.html @@ -33,8 +33,12 @@ {% for artist in event.artists.all %} {% include "festival/inc/artist_card.html" %} {% endfor %} - {% for video in event.videos.all %} + {% for v in event.videos.all %} + {% if v != video %} + {% with v as video %} {% include 'festival/inc/video_card.html' %} + {% endwith %} + {% endif %} {% endfor %} {% for post in event.blog_posts.all %} {% include 'blog/includes/post_card.html' %}