X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..5860bfbc5f20cc7c29935cc95f1ad9cfcf8f698a:/src/documents/ebook_utils.py?ds=sidebyside diff --git a/src/documents/ebook_utils.py b/src/documents/ebook_utils.py index e75ed777..9253d59f 100644 --- a/src/documents/ebook_utils.py +++ b/src/documents/ebook_utils.py @@ -14,7 +14,7 @@ class RedakcjaDocProvider(DocProvider): self.publishable = publishable def by_slug(self, slug): - return BytesIO(Book.objects.get(dc_slug=slug + return BytesIO(Book.objects.get(catalogue_book_id=slug ).materialize(publishable=self.publishable ).encode('utf-8'))