fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Librarian update
[redakcja.git]
/
apps
/
catalogue
/
ebook_utils.py
diff --git
a/apps/catalogue/ebook_utils.py
b/apps/catalogue/ebook_utils.py
index
1fcf8d3
..
d9c9922
100644
(file)
--- a/
apps/catalogue/ebook_utils.py
+++ b/
apps/catalogue/ebook_utils.py
@@
-13,7
+13,8
@@
class RedakcjaDocProvider(DocProvider):
def by_slug(self, slug):
return StringIO(Book.objects.get(dc_slug=slug
- ).materialize(publishable=self.publishable))
+ ).materialize(publishable=self.publishable
+ ).encode('utf-8'))
def serve_file(file_path, name, mime_type):