Obey length limits for wikidata import.
[redakcja.git] / src / documents / ebook_utils.py
index 9253d59..5c36cbe 100644 (file)
@@ -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'))