diff options
author | Markus Zapke-Grùˆndemann <markus@keimlink.de> | 2012-02-08 20:11:47 +0100 |
---|---|---|
committer | Markus Zapke-Grùˆndemann <markus@keimlink.de> | 2012-02-08 20:11:47 +0100 |
commit | 3123270a35221f196a21630501790f6b61d6eb57 (patch) | |
tree | a95bb7206dbafabcdf09d56150d7ba76458189cd /sublab_project/projects | |
parent | 7d96ecbe3054c3a913cc401fa13fe54aa376598c (diff) |
prevent errors if thumbnail does not exist
Diffstat (limited to 'sublab_project/projects')
-rw-r--r-- | sublab_project/projects/templates/projects/project_detail.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sublab_project/projects/templates/projects/project_detail.html b/sublab_project/projects/templates/projects/project_detail.html index 5c0a6dd..126e601 100644 --- a/sublab_project/projects/templates/projects/project_detail.html +++ b/sublab_project/projects/templates/projects/project_detail.html @@ -5,7 +5,7 @@ {% block content %} <h2 id="{{ object.slug }}">Projekt: {{ object.name }}</h2> - {% if object.image %} + {% if object.image.exists %} <div class="imagecontent"> <a href="{% url project_image object.slug %}"> {% thumbnail object.image "200" upscale=False as image %} |