From: Radek Czajka Date: Mon, 19 Mar 2012 12:43:37 +0000 (+0100) Subject: api revert X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/86b624d26dbc858b0252200567b0db169df235c2?ds=inline;hp=fac40627abbe9e6466b4442bfd45e9ed037dc199 api revert --- 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):