My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 82: Fix order_by for queryset in cache_tree_children
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by sirkonst@gmail.com, Dec 14, 2010
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:
     ...


Powered by Google Project Hosting