{"issue":{"created_at":"2011-11-26T00:21:15Z","state":"closed","updated_at":"2011-11-28T16:53:49Z","user":{"gravatar_id":"61e84e983b8f1531a755a86b7d46cf43","id":374612,"url":"https://api.github.com/users/benjaoming","avatar_url":"https://secure.gravatar.com/avatar/61e84e983b8f1531a755a86b7d46cf43?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"benjaoming"},"comments":12,"body":"I do not understand the logic of this code block, and it seems from the comments in it that it's also a bit funky :) Anyways, I have been hitting it, and I don't know why*). But after changing this line, it works fine.\r\n\r\n                if len(children):\r\n                    # TODO: WTF!?!\r\n                    # The last one is not the last... wait, what?\r\n                    children[-1].last = False\r\n\r\nshould be changed to:\r\n\r\n                if len(children):\r\n                    # TODO: WTF!?!\r\n                    # The last one is not the last... wait, what?\r\n                    children[children.count()-1].last = False\r\n\r\n*) except that it works on a Ubuntu 8.04 server with Django 1.3.1 but not on Ubuntu 11.10 -- so perhaps it has something to do with python-mysqldb.","assignee":null,"id":2353115,"labels":[{"name":"Blocker","color":"e10c02","url":"https://api.github.com/repos/divio/django-cms/labels/Blocker"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":1099,"title":"admin/change_list.py: Negative indexing is not supported","closed_at":"2011-11-28T13:26:11Z","html_url":"https://github.com/divio/django-cms/issues/1099","url":"https://api.github.com/repos/divio/django-cms/issues/1099","milestone":{"created_at":"2011-09-13T14:35:11Z","state":"open","closed_issues":37,"due_on":null,"creator":{"gravatar_id":"7d1f1e5f0365595b4b97ca26115bdf02","id":25211,"url":"https://api.github.com/users/chrisglass","avatar_url":"https://secure.gravatar.com/avatar/7d1f1e5f0365595b4b97ca26115bdf02?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"chrisglass"},"number":13,"description":"A first bugfix release for 2.2.\r\n\r\nSome small stuff like small frontend bugs and generally non-critical bugs that didn't make the 2.2 cut.","title":"2.2.1","url":"https://api.github.com/repos/divio/django-cms/milestones/13","open_issues":12}},"action":"created","comment":{"created_at":"2011-11-28T16:53:49Z","updated_at":"2011-11-28T16:53:49Z","user":{"gravatar_id":"b4f902096ea2ccfce71443d1d8fee5b3","id":141122,"url":"https://api.github.com/users/ojii","avatar_url":"https://secure.gravatar.com/avatar/b4f902096ea2ccfce71443d1d8fee5b3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ojii"},"body":"this should not be necessary. django-cms just requires 0.4.2 or higher, not a specific version","id":2901263,"url":"https://api.github.com/repos/divio/django-cms/issues/comments/2901263"}}