From 5b884a18e12f012f63598e2e920db12049ccd782 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 3 Jan 2012 00:02:00 +0530 Subject: [PATCH] oops --- itf/app/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itf/app/models.py b/itf/app/models.py index 9f3cff5..a108490 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -94,6 +94,9 @@ class ItfModel(models.Model): imgfield = main_image_getter() else: imgfield = main_image_getter + else: + imgfield = self.get_modelextra().default_image #FIXME!! + if imgfield.name == '': imgfield = self.get_modelextra().default_image