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

index e5fc7447891c22d42ad63042081f9ffac1e1d1f2..dd7f21df29fbba4b67c40d54e1b3ec26b37944a5 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.al() %}
+                {% if media.item.related.all %}
                 {% thumbnail media.item.related.all.0.file "x230" as im %}
                   <img src="{{ im.url }}" style="max-width: 420px; max-height: 200px;" alt="snapshot" />
                 {% endthumbnail %}