Added data_relation for picture of nodes

This commit is contained in:
2015-04-24 16:15:47 +02:00
parent 385ab838d5
commit 1ac5bab7e1

View File

@@ -52,6 +52,11 @@ nodes_schema = {
'picture': { 'picture': {
'type': 'objectid', 'type': 'objectid',
'nullable': True, 'nullable': True,
'data_relation': {
'resource': 'files',
'field': '_id',
'embeddable': True
},
}, },
'order': { 'order': {
'type': 'integer', 'type': 'integer',
@@ -161,17 +166,8 @@ files_schema = {
'backend': { 'backend': {
'type': 'string', 'type': 'string',
'required': True, 'required': True,
'allowed': ["fs.files", "attract-web", "attract"] 'allowed': ["attract-web", "attract"]
}, },
#'thumbnail': {
# 'type': 'string',
#},
#'preview': {
# 'type': 'string',
#},
#'binary_data': {
# 'type': 'media',
#},
'path': { 'path': {
'type': 'string', 'type': 'string',
'required': True, 'required': True,