fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
workaround for django ticket 17111; cover in api fix
[wolnelektury.git]
/
apps
/
api
/
handlers.py
diff --git
a/apps/api/handlers.py
b/apps/api/handlers.py
index
4216df9
..
98a5742
100644
(file)
--- a/
apps/api/handlers.py
+++ b/
apps/api/handlers.py
@@
-117,7
+117,7
@@
class BookDetails(object):
return book.children.all()
@classmethod
return book.children.all()
@classmethod
- def
audio
(cls, book):
+ def
media
(cls, book):
""" Returns all media for a book. """
return book.media.all()
""" 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 + [
"""
allowed_methods = ['GET']
fields = ['title', 'parent', 'children'] + Book.formats + [
- '
audio', 'url
'] + book_tag_categories
+ '
media', 'url', 'cover
'] + book_tag_categories
@piwik_track
def read(self, request, book):
@piwik_track
def read(self, request, book):