From: Jan Szejko Date: Tue, 28 Nov 2017 10:29:22 +0000 (+0100) Subject: move fragment to book detail X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/740407e860384695bb492659b16a0e4fd7a9a7ec?ds=sidebyside move fragment to book detail --- diff --git a/src/api/handlers.py b/src/api/handlers.py index 04c56f8f1..b8eec2f4b 100644 --- a/src/api/handlers.py +++ b/src/api/handlers.py @@ -156,7 +156,7 @@ class BookDetailHandler(BaseHandler, BookDetails): """ allowed_methods = ['GET'] fields = ['title', 'parent', 'children'] + Book.formats + [ - 'media', 'url', 'cover', 'cover_thumb'] + [ + 'media', 'url', 'cover', 'cover_thumb', 'fragment_data'] + [ category_plural[c] for c in book_tag_categories] @piwik_track @@ -279,7 +279,7 @@ class EBooksHandler(AnonymousBooksHandler): class FilterBooksHandler(AnonymousBooksHandler): fields = book_tag_categories + [ - 'href', 'title', 'url', 'cover', 'cover_thumb', 'slug', 'cover_source_image', 'fragment_data'] + 'href', 'title', 'url', 'cover', 'cover_thumb', 'slug', 'cover_source_image'] def read(self, request, title_part=None, author_part=None, is_lektura=None, is_audiobook=None, after=None, before=None, count=None):