Skip to content

Commit

Permalink
Merge pull request #1141 from chrisglass/docs-children
Browse files Browse the repository at this point in the history
Added some inline comments to the infamous line
  • Loading branch information
ojii committed Jan 10, 2012
2 parents ff3b7d5 + 0a5d8c4 commit ca9c886
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cms/admin/change_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca9c886

Please sign in to comment.