From e2921c8da848e49e6354d9e594134e18589dbe6e Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 30 Sep 2016 17:42:58 +0200 Subject: [PATCH] nodes_latest was missing the content_type --- pillar/web/projects/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pillar/web/projects/routes.py b/pillar/web/projects/routes.py index 36450f67..36db6e32 100644 --- a/pillar/web/projects/routes.py +++ b/pillar/web/projects/routes.py @@ -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