> class MPTTTree(models.Model):
>     created_at = models.DateTimeField(_('creation date'), auto_now_add=True)
>     updated_at = models.DateTimeField(_('last update date'), auto_now=True)
>     parent = models.ForeignKey("self", null = True, blank = True)
>     lhs = models.IntegerField(default=0, db_index = True)
>     rhs = models.IntegerField(default=0, db_index = True)
>     level = models.IntegerField(default=0, db_index = True)

> class Test(MPTTTree):
>     name = models.CharField(_('Name'), maxlength=255)
You can try to attach node payload via GenericRelations.

PS: take a look at
http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to