Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django-sorting + django-pagination |problem| #12

Open
sonniy opened this issue Jan 14, 2011 · 2 comments
Open

django-sorting + django-pagination |problem| #12

sonniy opened this issue Jan 14, 2011 · 2 comments

Comments

@sonniy
Copy link

sonniy commented Jan 14, 2011

When you try to handle sorting:
Caught AssertionError while rendering: Cannot reorder a query once a slice has been taken.

Why? it does not work with the slice?

@camilonova
Copy link

Try to use this one:
https://github.com/camilonova/django-sorting

@owais
Copy link

owais commented May 22, 2011

You have to call autosort before autopaginate

This is because autosort sorts objects across all pages not on the current page only. You have to sort first and slice later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants