From 2ddfd88511e9a5a92470632ebd0a26f1d4d20763 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 4 Jan 2012 19:12:12 +0530 Subject: [PATCH] main_image foo bar --- itf/app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/app/models.py b/itf/app/models.py index a108490..b5fee47 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -97,7 +97,7 @@ class ItfModel(models.Model): else: imgfield = self.get_modelextra().default_image #FIXME!! - if imgfield.name == '': + if imgfield is None or imgfield.name == '': imgfield = self.get_modelextra().default_image if imgfield: