Reputation: 668
I can only find documentation for Model.objects.rebuild()
which rebuilds all trees.
What if I wanted to rebuild a single tree? Is that possible?
If it's not possible - does that mean using move_node
or insert_node
results in rebuilding for all trees?
Upvotes: 0
Views: 81
Reputation: 668
Found partial_rebuild
which does the job: https://django-mptt.readthedocs.io/en/latest/mptt.managers.html#mptt.managers.TreeManager.partial_rebuild
Upvotes: 0