From cd202b3bf0673fcd86cf7ab9e757e7c55ef60240 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 2 Dec 2016 15:25:27 +0100 Subject: [PATCH] images in epub --- apps/catalogue/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index e436b0ba..72ed9cb9 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -353,7 +353,7 @@ def book_epub(request, pk, rev_pk): ) if doc.owner_organization is not None and doc.owner_organization.logo: ctx.cover_logo = 'http://%s%s' % (request.get_host(), doc.owner_organization.logo.url) - epub_file = EpubFormat(sst).build() + epub_file = EpubFormat(sst).build(ctx) from catalogue.ebook_utils import serve_file return serve_file(epub_file.get_filename(), '%d.epub' % doc.pk, 'application/epub+zip') -- 2.20.1