From 20a9c61facd61203c62abae41dac84a17d2c1875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 22 Mar 2016 12:41:41 +0100 Subject: [PATCH] Include link & link_expires in mandatory projections for File. --- pillarsdk/files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pillarsdk/files.py b/pillarsdk/files.py index c745203..93beb36 100755 --- a/pillarsdk/files.py +++ b/pillarsdk/files.py @@ -19,7 +19,8 @@ class File(List, Find, Create, Post, Update, Delete, Replace): path = "files" file_server_path = "file_storage/file" build_previews_server_path = "file_storage/build_previews" - ensure_query_projections = {'backend': 1, 'file_path': 1, 'project': 1, 'content_type': 1} + ensure_query_projections = {'backend': 1, 'file_path': 1, 'project': 1, 'content_type': 1, + 'link': 1, 'link_expires': 1} def post_file(self, file_path, name=None, api=None): """Stores a file on the database or static folder.