-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
allow setting a custom Django Paginator in pagination.PageNumberPagin… #3631
Conversation
What's the motivation behind that change ? Why isn't the django validator enough ? |
@xordoquy in our codebase we are using a different Django Paginator for some bigger tables (where the This would help us setting our own paginator without having to copy/paste the |
Out of curiosity, what do you use for estimated page counts? Follow up... I guess |
we are using the postgres statistics for this table. it has currently around 3 Mio records, and the rough value is exact enough. we already have modified But (a count in these specific tables takes around 2-3 seconds) |
Sounds sensible to me. |
|
Indeed. Making this easier to eliminate might be a good plan |
Milestoning to push this to the top for a final review. |
allow setting a custom Django Paginator class
Thanks @syphar! |
thanks @tomchristie and @xordoquy :) |
…ation