I was wondering if anyone has made a field for managing hierarchical
data in Django?

For example, a TreeField that manages "parent" relationships and gives
the model parent and children object managers:

  class Category(model.Model):
    tree = TreeField()

  >>> a = Category()
  >>> b = Category()
  >>> c = Category()
  >>> b.tree.parent = a
  >>> c.tree.parent = a
  >>> a.tree.children.all()
  [b, c]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to