Changes between Version 9 and Version 10 of ModifiedPreorderTreeTraversal
- Timestamp:
- Jul 1, 2007, 1:24:26 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModifiedPreorderTreeTraversal
v9 v10 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; You need to change the following in models.pyc: 10 In Django 0.96 the code given does not work; You need to change the following in models.pyc:[[BR]] 11 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()" 12 1. change {{{from django.contrib.contenttypes.models import ContentType}}} to {{{from django.contrib.contenttypes import generic}}}[[BR]] 13 14 2. change {{{content_object = models.GenericForeignKey()}}} to {{{content_object = generic.GenericForeignKey()}}}[[BR]] 15 14 16 15 17 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