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

Pagination breaks previous limits #310

Open
ripperdoc opened this issue May 3, 2017 · 1 comment
Open

Pagination breaks previous limits #310

ripperdoc opened this issue May 3, 2017 · 1 comment
Labels
type: bug Something isn't working

Comments

@ripperdoc
Copy link

When you create a pagination, it doesn't take into account any .limit() or .skip() that has already been done to the QuerySet being inputted. For example, if I do articles.objects().limit(3), paginating t for 10 items per page would remove the limit of max 3 articles.

I would consider this a bug as it makes it impossible to modify the query size in several steps.

@insspb
Copy link
Collaborator

insspb commented Jul 1, 2022

@ripperdoc it is strange to ask to check this with master, after 5 years issue. But who knows :)
I just merged #422 it is on connected topic, and maybe fix your issue too.
I do not have a chance to make a dedicated test for it, yet. As I am very limited in time, and want to bring a little life to this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants