Django-mptt and multiple parents?

我的梦境 提交于 2019-11-30 19:24:33
Evan Porter

I think Django-mptt is the wrong tool for this particular job. It deals with trees, and part of being a tree in Data Structures is that nodes have one parent, or the node is the root of the tree.

Trees are a generalized form of Graphs. I know of no Django app that'll help you handle those.

You may have to resort to maintaining your own ManyToMany relationships and forgo the convenience of Django-mptt.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!