Commit 5c382965 authored by okhin's avatar okhin

Fixing the JSON serializing of Searched object

parent 849bce95
......@@ -13,6 +13,6 @@ def jsonify(object):
elif object == []:
return json.dumps(object)
elif isinstance(object[0], SearchResult):
return serialize('json', [x.object for x in object])
return json.dumps([x.get_additional_fields() for x in object])
else:
return json.dumps(object)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment