owch
This commit is contained in:
parent
b881e47846
commit
55fc0e5227
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user