From 28ff7e0ff35ca91f04b119c48085423e0c3ddeb1 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 17 May 2016 15:22:30 +0200 Subject: [PATCH] fix double video --- app/festival/templates/festival/video_detail.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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' %} -- 2.39.5