Hard linking of texts to catalogue.
[redakcja.git] / src / documents / ebook_utils.py
index c5a758f..5c36cbe 100644 (file)
@@ -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'))