From: Guillaume Pellerin Date: Tue, 10 May 2016 16:27:30 +0000 (+0200) Subject: fix double post X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b743c53f059cc9092c2efe75fdd984e979e71006;p=mezzo.git fix double post --- diff --git a/app/templates/blog/blog_post_detail.html b/app/templates/blog/blog_post_detail.html index c76c387a..a433abb6 100644 --- a/app/templates/blog/blog_post_detail.html +++ b/app/templates/blog/blog_post_detail.html @@ -131,7 +131,9 @@ {% include 'festival/inc/video_card.html' %} {% endfor %} {% for post in event.blog_posts.all %} + {% if post != blog_post %} {% include 'blog/includes/post_card.html' %} + {% endif %} {% endfor %} {% endfor %}