]> git.parisson.com Git - teleforma.git/commitdiff
fix media
authoryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 14:35:03 +0000 (16:35 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 14:35:03 +0000 (16:35 +0200)
teleforma/templates/teleforma/inc/media_list.html

index dd7f21df29fbba4b67c40d54e1b3ec26b37944a5..5ac9c55dff8e0139607ebb914d0c588a8b43cd33 100644 (file)
@@ -14,7 +14,7 @@
             <tr>
             <td {% if forloop.first %}class="border-top"{% endif %} width="35%">
                 <a href="{% url teleforma-media-detail media.id %}" title="{% trans "View" %}">
-                {% if media.item.related.all %}
+                {% if media.item.related %}
                 {% thumbnail media.item.related.all.0.file "x230" as im %}
                   <img src="{{ im.url }}" style="max-width: 420px; max-height: 200px;" alt="snapshot" />
                 {% endthumbnail %}