Code

Changes between Version 8 and Version 9 of ModifiedPreorderTreeTraversal


Ignore:
Timestamp:
07/01/07 11:22:46 (7 years ago)
Author:
anonymous
Comment:

update for django 0.96

Legend:

Unmodified
Added
Removed
Modified
  • ModifiedPreorderTreeTraversal

    v8 v9  
    88[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. 
    99 
    10 In Django 0.96 the code given does not work.  If anyone uses this, an update would be appreciated. 
     10In Django 0.96 the code given does not work; You need to change the following in models.pyc: 
     11 
     121. change "from django.contrib.contenttypes.models import ContentType" to "from django.contrib.contenttypes import generic" 
     132. change "content_object = models.GenericForeignKey()" to "content_object = generic.GenericForeignKey()" 
    1114 
    1215If 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