Django 1.4 Alpha and AssertionError: Cannot reorder a query once a slice has been taken.

Django 1.4 Alpha for me caused a mysterious error in one of my admin changelist views with an unhelpful error and stack trace too deep.

After uncommenting one item at a time, I found the cause to be my `list_editable` line.

Removed the list_editable attribute and the error was fixed.

I don’t care for what causes this problem, just that I can disable it and move on.

1 Comment

  1. I got this as well. It’s a bug. And it’s caused by pagination, so if you’ve got 145 items like me, you can work around it by setting list_per_page sufficiently high so that the pagination code doesn’t kick in.

    https://code.djangoproject.com/ticket/17729

    You might want to subscribe to that bug 🙂

Leave a Comment