Remove blog and page node types from jstree
They will be visible in project_navigation_links (see next commit).
This commit is contained in:
@@ -62,7 +62,7 @@ def jstree_get_children(node_id, project_id=None):
|
|||||||
'where': {
|
'where': {
|
||||||
'$and': [
|
'$and': [
|
||||||
{'node_type': {'$regex': '^(?!attract_)'}},
|
{'node_type': {'$regex': '^(?!attract_)'}},
|
||||||
{'node_type': {'$not': {'$in': ['comment', 'post']}}},
|
{'node_type': {'$not': {'$in': ['comment', 'post', 'blog', 'page']}}},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user