Commit 8a37fc6a authored by Rachana's avatar Rachana

publish page by default in resource adding in unit

parent 396e066c
......@@ -941,6 +941,8 @@ def add_page(request, group_id):
if name not in collection_list:
page_node = node_collection.collection.GSystem()
page_node.save(is_changed=get_node_common_fields(request, page_node, group_id, gst_page))
page_node.status = u"PUBLISHED"
page_node.save()
context_node.collection_set.append(page_node._id)
context_node.save()
response_dict["success"] = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment