Changes between Version 10 and Version 11 of ModifiedPreorderTreeTraversal


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

woops. edited wrong page, reverted the changes, sorry

Legend:

Unmodified
Added
Removed
Modified
  • ModifiedPreorderTreeTraversal

    v10 v11  
    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:[[BR]]
    11 
    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 
     10In Django 0.96 the code given does not work.
    1611
    1712If 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