Skip to content
Browse files

trying to fix an error

  • Loading branch information...
1 parent f50b756 commit 540865554bd9682facc49b9b990b5f68a65a0a7f @kayluhb kayluhb committed Mar 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 cms/admin/change_list.py
View
3 cms/admin/change_list.py
@@ -197,7 +197,8 @@ def set_items(self, request):
# 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
+ # children[-1].last = False
+ children[children.count()-1].last = False
page.menu_level = 0
root_pages.append(page)
if page.parent_id:

0 comments on commit 5408655

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