Permalink
Browse files

add all roots to pages list

  • Loading branch information...
1 parent 17564d5 commit af4c7eb58a4810a87bc4110d3a9c8e3dcc692b8a @evildmp committed Jun 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 cms/menu.py
View
3 cms/menu.py
@@ -279,7 +279,8 @@ def get_nodes(self, request):
pages.filter(parent__in=relevant_pages).distinct() | \
relevant_pages.distinct() | \
pages.filter(parent__in=current_page_queryset).distinct() | \
- current_page_queryset
+ current_page_queryset | \
+ pages.filter(level=0).distinct()
# do they need to be ordered here? I am not sure this is necessary
pages = pages.order_by("tree_id", "lft")

0 comments on commit af4c7eb

Please sign in to comment.