Changes between Version 9 and Version 10 of ModifiedPreorderTreeTraversal


Ignore:
Timestamp:
Jul 1, 2007, 1:24:26 PM (17 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModifiedPreorderTreeTraversal

    v9 v10  
    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; You need to change the following in models.pyc:
     10In Django 0.96 the code given does not work; You need to change the following in models.pyc:[[BR]]
    1111
    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()"
     121. change {{{from django.contrib.contenttypes.models import ContentType}}} to {{{from django.contrib.contenttypes import generic}}}[[BR]]
     13
     142. change {{{content_object = models.GenericForeignKey()}}} to {{{content_object = generic.GenericForeignKey()}}}[[BR]]
     15
    1416
    1517If 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
Back to Top