owch
This commit is contained in:
parent
b881e47846
commit
55fc0e5227
|
@ -90,7 +90,7 @@ class ItfModel(models.Model):
|
||||||
def get_main_image(self):
|
def get_main_image(self):
|
||||||
if hasattr(self, 'main_image'):
|
if hasattr(self, 'main_image'):
|
||||||
main_image_getter = 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()
|
imgfield = main_image_getter()
|
||||||
else:
|
else:
|
||||||
imgfield = main_image_getter
|
imgfield = main_image_getter
|
||||||
|
|
Loading…
Reference in New Issue
Block a user