[Solved]-Django-mptt and multiple parents?

13πŸ‘

βœ…

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.

πŸ‘€Evan Porter

Leave a comment