divio/django-cms — pull request #1104 by bradwhittington (2011-11-30 19:35:59+00:00)
Title: Sometimes rendering the admin change_list page chokes (not sure what leads to it) because of attempted use of negative indexing

Uses len(children)-1 in place of -1, as children is/can be a QuerySet, which doesn't support negative indexing

This fixes the issue, but I am really stabbing in the dark as to the purpose and proper solution here.