X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c46844cb5a794566d15437b0c4a809e9230baecf..c51d32b7b97016260e4c60dda9fbbd9eb25420ce:/src/documents/ebook_utils.py?ds=sidebyside diff --git a/src/documents/ebook_utils.py b/src/documents/ebook_utils.py index c5a758f1..5c36cbee 100644 --- a/src/documents/ebook_utils.py +++ b/src/documents/ebook_utils.py @@ -15,7 +15,7 @@ class RedakcjaDocProvider(DocProvider): def by_slug(self, slug): print(slug) - return BytesIO(Book.objects.get(catalogue_book_id=slug + return BytesIO(Book.objects.get(dc_slug=slug ).materialize(publishable=self.publishable ).encode('utf-8'))