silliness, hasattr()
This commit is contained in:
parent
67bb35b2eb
commit
5b7ebc379f
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue
Block a user