def get_cover_url(title, width): """Returns the url to the cover image """ return get_cover_url_at_width(title, width)
def show_titlecover(title, width): """Returns Image Tag for Cover at Specified Width""" return {"title": title, "url": get_cover_url_at_width(title, width)}
def image(self, obj): if settings.MEDIA_DOMAIN: return get_cover_url_at_width(obj, 1400) else: return add_domain(Site.objects.get_current().domain, get_cover_url_at_width(obj, 1400))