From c795015a3cd51d4f736c40a824f2d34bd15f2b45 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Thu, 13 Sep 2018 16:16:52 +0200 Subject: [PATCH] Remove blog and page node types from jstree They will be visible in project_navigation_links (see next commit). --- pillar/web/utils/jstree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/web/utils/jstree.py b/pillar/web/utils/jstree.py index d84372be..a9182696 100644 --- a/pillar/web/utils/jstree.py +++ b/pillar/web/utils/jstree.py @@ -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']}}}, ], } }