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:
parent
2d18057c6e
commit
1177f516ba
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user