Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1- create the child

2- list the child




create an childĀ 


Code Block
titlecreate an child
    # add ancestor ( parent_id)
    if parent_id != None:

     
#dpayload['ancestors']
 
=
 
{}
         dpayload['ancestors'] = [{'type':"page",'id':parent_id}]