From 1177f516ba43fd41a4978a1f388742baa3aa64be Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Sat, 16 Sep 2017 19:20:12 +0200 Subject: [PATCH] Set status as 'published' when creating a blog If a blog is not set as published it won't be visible in the navbar. --- pillar/cli/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pillar/cli/setup.py b/pillar/cli/setup.py index ada719ce..5fc4dfd5 100644 --- a/pillar/cli/setup.py +++ b/pillar/cli/setup.py @@ -133,7 +133,9 @@ def create_blog(proj_url): 'node_type': node_type_blog['name'], 'name': 'Blog', 'description': '', - 'properties': {}, + 'properties': { + 'status': 'published', + }, 'project': proj_id, } r, _, _, status = current_app.post_internal('nodes', blog)