Remove blog and page node types from jstree

They will be visible in project_navigation_links (see next commit).
This commit is contained in:
Francesco Siddi 2018-09-13 16:16:52 +02:00
parent afda0062f5
commit c795015a3c

View File

@ -62,7 +62,7 @@ def jstree_get_children(node_id, project_id=None):
'where': {
'$and': [
{'node_type': {'$regex': '^(?!attract_)'}},
{'node_type': {'$not': {'$in': ['comment', 'post']}}},
{'node_type': {'$not': {'$in': ['comment', 'post', 'blog', 'page']}}},
],
}
}