]> git.parisson.com Git - mezzo.git/commitdiff
fix double video
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 17 May 2016 13:22:30 +0000 (15:22 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 17 May 2016 13:22:30 +0000 (15:22 +0200)
app/festival/templates/festival/video_detail.html

index 43bb77129d7e07a16a4e68f90ac436e96f88ede0..3e4260007108ba626bd5fd9cfab12c33ff7496ea 100644 (file)
     {% 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' %}