Added data_relation for picture of nodes
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user