Re: help understanding mptt/treebeard

2011-02-04 Thread Tim
Hi Jason, Thanks for explaining. I suppose I was trying to make my problem harder than it really is. My answer for the problem of a user who wants to remove or insert a chapter is to use a field called 'sequence_number'. If a user deletes or adds a chapter, I have a pre-save function that (1)

Re: help understanding mptt/treebeard

2011-02-03 Thread Jason
"maybe a chapter needs to be added as the 13th chapter in a Book, for example" MPTT and the other trees are mainly used on data structures where node insertion might happen anywhere on a tree. In your case, you only put chapters in books and would never move a chapter inside of a 'Library' or

help understanding mptt/treebeard

2011-02-03 Thread Tim
hi, I think mptt or treebeard may be a good fit for my project, but I'm not sure. Currently I have the project setup in a conventional way with no explicit tree structure, just a pattern of ForeignKey usage. It works, but I'm beginning to get into some complexity. The project is for building