@must_have_permission(ADMIN)
@must_be_branched_from_node
def edit_draft_registration_page(auth, node, draft, **kwargs):
 check_draft_state(draft)
 ret = project_utils.serialize_node(node, auth, primary=True)
 ret['draft'] = serialize_draft_registration(draft, auth)
 return ret

@ must_have_permission ( ADMIN ) @ must_be_branched_from_node def edit_draft_registration_page ( auth , node , draft , ** kwargs ) : check_draft_state ( draft ) ret = project_utils . serialize_node ( node , auth , primary = True ) ret [ 'draft' ] = serialize_draft_registration ( draft , auth ) return ret
draft registration editor :return: serialized draftregistration :rtype: dict .