Changes between Version 8 and Version 9 of ModifiedPreorderTreeTraversal
- Timestamp:
- Jul 1, 2007, 1:22:46 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModifiedPreorderTreeTraversal
v8 v9 8 8 [http://www.inerciasensorial.com.br/hacks/mptt-0.9.zip Download the necessary files] from my website. For now, it's just a model and a view (with a single function). I thought about adding a template tag but stick with the do-it-yourself flexibility. 9 9 10 In Django 0.96 the code given does not work. If anyone uses this, an update would be appreciated. 10 In Django 0.96 the code given does not work; You need to change the following in models.pyc: 11 12 1. change "from django.contrib.contenttypes.models import ContentType" to "from django.contrib.contenttypes import generic" 13 2. change "content_object = models.GenericForeignKey()" to "content_object = generic.GenericForeignKey()" 11 14 12 15 If you hack it to add some functionality, drop me an email (inerte is my gmail.com username). Current version is 0.9, and if it doesn't break anything, as soon as I finish editing the forms that I use to serve as an example, it will be 1.0. And if we depend on any new features, it will probably stay at this version forever :p