X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/21cd47e315b2e86edeff93bac5d1eca5b5d2c428..491078616e2129745f300c1f0357f5bac52e801d:/src/documents/ebook_utils.py diff --git a/src/documents/ebook_utils.py b/src/documents/ebook_utils.py index 9253d59f..5c36cbee 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(catalogue_book_id=slug + print(slug) + return BytesIO(Book.objects.get(dc_slug=slug ).materialize(publishable=self.publishable ).encode('utf-8'))