From 55fc0e5227b7a3c5663beddbbb384a179e15dcb3 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 15 Dec 2011 22:00:12 +0530 Subject: [PATCH] owch --- 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 3f418bf..5cd5da7 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -90,7 +90,7 @@ class ItfModel(models.Model): def get_main_image(self): if hasattr(self, 'main_image'): main_image_getter = self.main_image - if type(main_image_getter).__name__ == 'function': + if type(main_image_getter).__name__ == 'instancemethod': imgfield = main_image_getter() else: imgfield = main_image_getter