From 3123270a35221f196a21630501790f6b61d6eb57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Wed, 8 Feb 2012 20:11:47 +0100 Subject: prevent errors if thumbnail does not exist --- sublab_project/projects/templates/projects/project_detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sublab_project/projects') 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 %}

Projekt: {{ object.name }}

- {% if object.image %} + {% if object.image.exists %}
{% thumbnail object.image "200" upscale=False as image %} -- cgit v1.2.1