From 86b624d26dbc858b0252200567b0db169df235c2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 19 Mar 2012 13:43:37 +0100 Subject: [PATCH] api revert --- apps/api/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.20.1