From a2e7c595c18e52749d06a6a2e8de252500c03a3b Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Mon, 6 Oct 2014 20:02:29 +0200 Subject: [PATCH] Oops --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/models.py b/main/models.py index 3ef0614..730b916 100755 --- a/main/models.py +++ b/main/models.py @@ -130,7 +130,7 @@ class UserProfile(models.Model): def profile_image_url(self): from django.templatetags.static import static - if self.image: + if not self.image: return static('img/unknown_person.png') return self.image