This commit is contained in:
Sanj 2011-12-15 22:00:12 +05:30
parent b881e47846
commit 55fc0e5227

View File

@ -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