Django MPTT 0.1 Released
The first public release of Django MPTT is available for download.
Version 0.1 features:
- Simple registration of Model classes for MPTT - fields required specifically for the MPTT tree structure will be added dynamically if not present in a given Model.
- The tree structure is automatically managed when you create or delete MPTT Model instances. New instances are added as the last child of their parent if they have one, otherwise they become the root of a new tree.
- MPTT Model instances have methods for retrieving their ancestors, siblings and descendants from the database, or determining the number of descendants they have (which does not involve a database hit with MPTT).
- The tree structure is automatically updated when you change a Model instance's parent - modified instances are moved so they are the last child of their new parent. This allows basic management of the tree using the parent field available to you in the
django.contrib.adminapplication and innewformsforms automatically generated withModelForm. - The
TreeManagerwhich is added to all MPTT Model classes provides a tree management API which can be used to move any node (and its descendants) to an arbitrary point in any tree. - A template tag and template filter for working with trees of MPTT Model instances.
Posted by jonny on January 4, 2008

Comments
Mattias January 4, 2008 at 8:52 a.m.
Keep up the good work - will check this out.
Jay January 4, 2008 at 9:35 p.m.
Looks awesome. Great work.
Comments are currently disabled