[Django]-Django-mptt TreeManyToManyField not working?

3👍

Nodes can’t have more than one parent. That fundamentally changes your data structure – it’s no longer a tree, it’s an arbitrary graph.

django-mptt only handles trees. If you have a large graph database, you’ve got a very different problem. You might want to look into using a graph database rather than an RDBMS.

AFAIK there’s no django apps which make graph structures easy, but then again I’ve never really needed to 🙂

Useful links:

Leave a comment