Skip to content

Commit

Permalink
add all roots to pages list
Browse files Browse the repository at this point in the history
  • Loading branch information
evildmp committed Jun 18, 2012
1 parent 17564d5 commit af4c7eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/menu.py
Expand Up @@ -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")
Expand Down

0 comments on commit af4c7eb

Please sign in to comment.