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

index beda9d32c3f98c0b94ca63fa65078433b84d9635..b8942caf7deb51285ad6eeb5c434d237c81c2bf2 100644 (file)
@@ -14,8 +14,8 @@
             <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 %}
-                  <img src="{% url telemeta-item-related media.item.public_id media.item.related.id %}" style="max-width: 230px; max-height: 200px;" alt="snapshot" />
+                 {% if media.item.related.file %}
+                  <img src="{% url telemeta-item-related media.item.code media.item.related.pk %}" style="max-width: 230px; max-height: 200px;" alt="snapshot" />
                  {% endif %}
                 </a>
             </td>