From 5b7ebc379f3868e41ff6733a1d4c5cae59145b2d Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 8 Dec 2011 15:15:24 +0530 Subject: [PATCH] silliness, hasattr() --- 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 2ecb0c3..8bbcf4e 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -88,7 +88,7 @@ class ItfModel(models.Model): def get_main_image(self): - if not self.__hasattr__('main_image'): + if not hasattr(self, 'main_image'): return {'thumb': None} #FIXME main_image = self.main_image if type(main_image).__name__ == 'function':