X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/92d4704c889df1405c4d2c34e1fce5e5c1ced680..9b533fdbfd08bd764744ae3a0d4717c87b61cf18:/src/documents/ebook_utils.py?ds=inline 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'))