Force projection of Project.category and Project.user.

This is required for finding the home project.
This commit is contained in:
2016-06-15 15:12:11 +02:00
parent 7b96aa656b
commit b8048925a1

View File

@@ -16,7 +16,7 @@ class Project(List, Find, Create, Post, Update, Delete, Replace):
"""Project class wrapping the REST nodes endpoint
"""
path = "projects"
ensure_query_projections = {'permissions': 1}
ensure_query_projections = {'permissions': 1, 'category': 1, 'user': 1}
@classmethod
def find_one(cls, params, api=None):