def get_thumbnail_url(self): """ Return the URL for the thumbnail image for this Company """ if self.image: return getMediaUrl(self.image.thumbnail.url) else: return getBlankThumbnail()
def get_thumbnail_url(self): """ Return the URL of the image thumbnail for this part """ if self.image: return helpers.getMediaUrl(self.image.thumbnail.url) else: return helpers.getBlankThumbnail()