summaryrefslogtreecommitdiff
path: root/sublab_project/news/templates/news/news_list.html
diff options
context:
space:
mode:
authorMarkus Zapke-Grùˆndemann <markus@keimlink.de>2012-02-08 20:11:47 +0100
committerMarkus Zapke-Grùˆndemann <markus@keimlink.de>2012-02-08 20:11:47 +0100
commit3123270a35221f196a21630501790f6b61d6eb57 (patch)
treea95bb7206dbafabcdf09d56150d7ba76458189cd /sublab_project/news/templates/news/news_list.html
parent7d96ecbe3054c3a913cc401fa13fe54aa376598c (diff)
prevent errors if thumbnail does not exist
Diffstat (limited to 'sublab_project/news/templates/news/news_list.html')
-rw-r--r--sublab_project/news/templates/news/news_list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/sublab_project/news/templates/news/news_list.html b/sublab_project/news/templates/news/news_list.html
index fa11311..116de0a 100644
--- a/sublab_project/news/templates/news/news_list.html
+++ b/sublab_project/news/templates/news/news_list.html
@@ -9,7 +9,7 @@
<h3 id="{{ post.slug }}">
<a href="{{ post.get_absolute_url }}">{{ post.date_updated|date }} - {{ post.title }}</a>
</h3>
- {% if post.image %}
+ {% if post.image.exists %}
<div class="imagecontent">
<a href="{{ post.get_absolute_url }}">
{% thumbnail post.image "200" upscale=False as image %}