nodes_latest was missing the content_type

This commit is contained in:
Pablo Vazquez 2016-09-30 17:42:58 +02:00
parent d1d48553e5
commit e2921c8da8

View File

@ -258,7 +258,8 @@ def render_project(project, api, extra_context=None, template_name=None):
return []
# Construct query parameters outside the loop.
projection = {'name': 1, 'user': 1, 'node_type': 1, 'project': 1, 'properties.url': 1}
projection = {'name': 1, 'user': 1, 'node_type': 1, 'project': 1,
'properties.url': 1, 'properties.content_type': 1}
params = {'projection': projection, 'embedded': {'user': 1}}
if get_picture:
projection['picture'] = 1