Skip to content
Browse files

Merge pull request #1141 from chrisglass/docs-children

Added some inline comments to the infamous line
  • Loading branch information...
2 parents ff3b7d5 + 0a5d8c4 commit ca9c886054f591dc3ed407c2a00547b708d38a92 @ojii ojii committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 cms/admin/change_list.py
View
2 cms/admin/change_list.py
@@ -195,6 +195,8 @@ def set_items(self, request):
if len(children):
# TODO: WTF!?!
# The last one is not the last... wait, what?
+ # children should NOT be a queryset. If it is, check that
+ # your django-mptt version is 0.5.1
children[-1].last = False
page.menu_level = 0
root_pages.append(page)

0 comments on commit ca9c886

Please sign in to comment.
Something went wrong with that request. Please try again.