django-mptt 자습서를 성공적으로 완료했습니다. 내가 어떻게하는지 알 수없는 것은 아이의 아이를 만드는 것입니다.django-mptt를 사용하여 하위 레코드 만들기
어린이의 자녀는 제 3의 레벨 이상을 의미합니다. 나는 1.3.1, 1.3.2를 만들려면 아래 내가 insert_node
있는 doco에서 1.3.1.1
1.0 Product Z
1.1 Product A
1.2 Product B
1.3 Product P
1.3.1 Product X
1.3.1.1 Product O
1.3.2 Product Y
2.0 Product H
을 예를 참조하지만이 작업을 진행하기에 충분한 이해 해달라고.
NOTE: This is a low-level method; it does NOT respect ``MPTTMeta.order_insertion_by``.
In most cases you should just set the node's parent and let mptt call this during save.
내가 'insert_node'를 사용해야 하는가 또는 더 나은 방법이있다 : 또한 나는 말한다 insert_node
에 관한 code comments (라인 317)에서 뭔가를 발견? 'insert_node'를 사용해야한다면 사용 예를 제공 할 수 있습니까?