X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/92d4704c889df1405c4d2c34e1fce5e5c1ced680..491078616e2129745f300c1f0357f5bac52e801d:/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'))