Set status as 'published' when creating a blog

If a blog is not set as published it won't be visible in the navbar.
This commit is contained in:
Francesco Siddi 2017-09-16 19:20:12 +02:00
parent 2d18057c6e
commit 1177f516ba

View File

@ -133,7 +133,9 @@ def create_blog(proj_url):
'node_type': node_type_blog['name'], 'node_type': node_type_blog['name'],
'name': 'Blog', 'name': 'Blog',
'description': '', 'description': '',
'properties': {}, 'properties': {
'status': 'published',
},
'project': proj_id, 'project': proj_id,
} }
r, _, _, status = current_app.post_internal('nodes', blog) r, _, _, status = current_app.post_internal('nodes', blog)