Restored data_relation for nodes and node_types

This allows us to make queries to nodes and get information about their
parent.
This commit is contained in:
2015-04-24 12:43:25 +02:00
parent 770838f0fc
commit 35dfbd71a2

View File

@@ -59,11 +59,11 @@ nodes_schema = {
},
'parent': {
'type': 'objectid',
#'default': '',
#'data_relation': {
# 'resource': 'nodes',
# 'field': '_id',
#},
'data_relation': {
'resource': 'nodes',
'field': '_id',
'embeddable': True
},
},
'user': {
'type': 'objectid',
@@ -72,10 +72,11 @@ nodes_schema = {
'node_type': {
'type': 'objectid',
'required': True,
#'data_relation': {
# 'resource': 'node_types',
# 'field': '_id',
#},
'data_relation': {
'resource': 'node_types',
'field': '_id',
'embeddable': True
},
},
'properties': {
'type' : 'dict',