diff --git a/themis/datatypes/views.py b/themis/datatypes/views.py index 4de4578..7ee3ba6 100644 --- a/themis/datatypes/views.py +++ b/themis/datatypes/views.py @@ -31,6 +31,10 @@ class DeputyJson(BrowserView): d['work_address'] = self.context.work_address.as_dict(), if self.context.work_address_2: d['work_address_2'] = self.context.work_address_2.as_dict() + if self.context.current_functions and self.context.current_functions.raw: + d['current_functions'] = self.context.current_functions.raw + if self.context.past_functions and self.context.past_functions.raw: + d['past_functions'] = self.context.past_functions.raw self.request.response.setHeader('Content-type', 'application/json') return json.dumps(d)