X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fac40627abbe9e6466b4442bfd45e9ed037dc199..63fb245d8fa7086f950be033c01caa35488b2cc1:/apps/api/handlers.py diff --git a/apps/api/handlers.py b/apps/api/handlers.py index 4216df9fa..b11a0a65f 100644 --- a/apps/api/handlers.py +++ b/apps/api/handlers.py @@ -117,7 +117,7 @@ class BookDetails(object): return book.children.all() @classmethod - def audio(cls, book): + def media(cls, book): """ Returns all media for a book. """ return book.media.all() @@ -134,7 +134,7 @@ class BookDetailHandler(BaseHandler, BookDetails): """ allowed_methods = ['GET'] fields = ['title', 'parent', 'children'] + Book.formats + [ - 'audio', 'url'] + book_tag_categories + 'media', 'url'] + book_tag_categories @piwik_track def read(self, request, book):