| Issue 82: | Fix order_by for queryset in cache_tree_children |
‹ Prev
6 of 6
|
| 1 person starred this issue and may be notified of changes. | Back to list |
I think you must set the forced sort to avoid error "ValueError (cache_tree_children was passed nodes in the wrong order!").
Fix:
...
current_path = []
top_nodes = []
+ queryset = queryset.order_by('tree_id', 'lft')
if queryset:
...
Dec 18, 2010
Project Member
#1
craig.ds@gmail.com
|