fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor fix
[wolnelektury.git]
/
apps
/
api
/
handlers.py
diff --git
a/apps/api/handlers.py
b/apps/api/handlers.py
index
f234167
..
706e0cd
100644
(file)
--- a/
apps/api/handlers.py
+++ b/
apps/api/handlers.py
@@
-83,6
+83,9
@@
class CatalogueHandler(BaseHandler):
elif field == 'author':
obj[field] = ", ".join(t.name for t in book.tags.filter(category='author'))
elif field == 'author':
obj[field] = ", ".join(t.name for t in book.tags.filter(category='author'))
+ elif field == 'parent':
+ obj[field] = book.parent_id
+
elif field in ('license', 'license_description', 'source_name',
'technical_editors', 'editors'):
f = extra_info.get(field)
elif field in ('license', 'license_description', 'source_name',
'technical_editors', 'editors'):
f = extra_info.get(field)