fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
book preview api
[wolnelektury.git]
/
src
/
api
/
handlers.py
diff --git
a/src/api/handlers.py
b/src/api/handlers.py
index
b3edaef
..
8d32873
100644
(file)
--- a/
src/api/handlers.py
+++ b/
src/api/handlers.py
@@
-401,6
+401,11
@@
class FilterBooksHandler(AnonymousBooksHandler):
return QuerySetProxy(filtered_books)
+class BookPreviewHandler(BookDetailHandler):
+ def read(self, request):
+ return Book.objects.filter(preview=True)
+
+
# add categorized tags fields for Book
def _tags_getter(category):
@classmethod