From 8f98ff35ae8cd6ebe07d73112f8c476011ac78d6 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 31 Aug 2011 15:45:22 +0200 Subject: [PATCH] minor fix --- apps/api/handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/api/handlers.py b/apps/api/handlers.py index f23416751..706e0cdac 100644 --- 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 == 'parent': + obj[field] = book.parent_id + elif field in ('license', 'license_description', 'source_name', 'technical_editors', 'editors'): f = extra_info.get(field) -- 2.20.1