X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..13f286427e0ceb7a6c442844c447c7c3d5495871:/src/documents/ebook_utils.py diff --git a/src/documents/ebook_utils.py b/src/documents/ebook_utils.py index e75ed777..c5a758f1 100644 --- 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): - 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'))