On Mar 27, 2:10 pm, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > HI, > > Currently I am trying to store a "tree" in a database and want to use Nested > Sets in order to do this. I was wondering if this exists within Django atm > or if there are plans to add it in the future or has someone developed it on > the side? If the answer to these questions is "NO", is there a reason which > prevents Nested Sets from being implemented in Django? > > I m imagining a model; > class Node(models.Model): > name = models.TextField() > lft = models.IntegerField() > rgt = models.IntegerField() > objects = NSManager() > > and having a manager do all of the query work.......as well as making > changes to save and delete. Does this seem like the right idea? I m just > checking before I jump in. > > Many Thanks > > Nathan
Or you use this http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal Best regards Jonas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---