fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bd2e17
)
images in epub
author
Jan Szejko
<janek37@gmail.com>
Fri, 2 Dec 2016 14:25:27 +0000
(15:25 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 2 Dec 2016 14:25:27 +0000
(15:25 +0100)
apps/catalogue/views.py
patch
|
blob
|
history
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
e436b0b
..
72ed9cb
100644
(file)
--- 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')