fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use audience->thema in legimi too.
[redakcja.git]
/
src
/
documents
/
ebook_utils.py
diff --git
a/src/documents/ebook_utils.py
b/src/documents/ebook_utils.py
index
e75ed77
..
c5a758f
100644
(file)
--- a/
src/documents/ebook_utils.py
+++ b/
src/documents/ebook_utils.py
@@
-14,7
+14,8
@@
class RedakcjaDocProvider(DocProvider):
self.publishable = publishable
def by_slug(self, slug):
self.publishable = publishable
def by_slug(self, slug):
- return BytesIO(Book.objects.get(dc_slug=slug
+ print(slug)
+ return BytesIO(Book.objects.get(catalogue_book_id=slug
).materialize(publishable=self.publishable
).encode('utf-8'))
).materialize(publishable=self.publishable
).encode('utf-8'))