From 849a673f8b2f3aa996d4dcfd38a477133634bf8a Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Mon, 23 Sep 2013 20:53:58 +0530 Subject: [PATCH] wha? --- itf/app/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itf/app/models.py b/itf/app/models.py index a23b87e..c76d4e8 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -262,7 +262,8 @@ class ItfModel(models.Model): imgfield = main_image_getter if imgfield is None or imgfield.name == '': - imgfield = self.get_modelextra().default_image + if self.get_modelextra(): + imgfield = self.get_modelextra().default_image if imgfield: try: