From 1ac5bab7e106bb419a5e0d788b0e95b4c94ba2d5 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Fri, 24 Apr 2015 16:15:47 +0200 Subject: [PATCH] Added data_relation for picture of nodes --- attract/settings.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/attract/settings.py b/attract/settings.py index 9b9b1536..effcd3ef 100644 --- a/attract/settings.py +++ b/attract/settings.py @@ -52,6 +52,11 @@ nodes_schema = { 'picture': { 'type': 'objectid', 'nullable': True, + 'data_relation': { + 'resource': 'files', + 'field': '_id', + 'embeddable': True + }, }, 'order': { 'type': 'integer', @@ -161,17 +166,8 @@ files_schema = { 'backend': { 'type': 'string', 'required': True, - 'allowed': ["fs.files", "attract-web", "attract"] + 'allowed': ["attract-web", "attract"] }, - #'thumbnail': { - # 'type': 'string', - #}, - #'preview': { - # 'type': 'string', - #}, - #'binary_data': { - # 'type': 'media', - #}, 'path': { 'type': 'string', 'required': True,