public
Description: utilities for implementing a modified pre-order traversal tree in django
Homepage: http://code.google.com/p/django-mptt/
Clone URL: git://github.com/brosner/django-mptt.git
Search Repo:
Revert "fixed a backward incompatible change with 
order_insertion_by"

This reverts commit 262668c37b703619a0e69b385ea9f701a5c08c6c.

No longer needed since this is a Backward Incompatible change.
brosner (author)
Wed Feb 06 09:56:10 -0800 2008
commit  e92fa972cf9067a49c801d61ea2c899e1edd7ec1
tree    4aef179c225fae4823778774a858783a7a71c548
parent  262668c37b703619a0e69b385ea9f701a5c08c6c
...
37
38
39
40
41
42
43
 
44
45
46
...
37
38
39
 
 
 
 
40
41
42
43
0
@@ -37,10 +37,7 @@ def register(model, parent_attr='parent', left_attr='lft', right_attr='rght',
0
     opts.tree_id_attr = tree_id_attr
0
     opts.level_attr = level_attr
0
     opts.tree_manager_attr = tree_manager_attr
0
- if isinstance(order_insertion_by, str):
0
- opts.order_insertion_by = [order_insertion_by]
0
- else:
0
- opts.order_insertion_by = order_insertion_by
0
+ opts.order_insertion_by = order_insertion_by
0
 
0
     # Add tree fields if they do not exist
0
     for attr in [left_attr, right_attr, tree_id_attr, level_attr]:

Comments

    No one has commented yet.