From b8048925a14c21346b999735d67714e3eec026c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 15 Jun 2016 15:12:11 +0200 Subject: [PATCH] Force projection of Project.category and Project.user. This is required for finding the home project. --- pillarsdk/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillarsdk/projects.py b/pillarsdk/projects.py index 68168c3..918fb60 100644 --- a/pillarsdk/projects.py +++ b/pillarsdk/projects.py @@ -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):