Search code examples
djangobinary-treedjango-mptt

How does one use Django-MPTT with multiple trees?


I'm planning to use Django MPTT with a multi-tenant architecture, so there will be many site home pages, and I'd like not to have to rebuild the entire page table's mptt feilds every time a user changes the location of their About Us page. I'd rather rebuild just that user's website. Is this possible?


Solution

  • Just use a different tree_id value for each tree.