Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
allow setting a custom Django Paginator in pagination.PageNumberPagin…#3631
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xordoquy commentedNov 13, 2015
What's the motivation behind that change ? Why isn't the django validator enough ? |
syphar commentedNov 13, 2015
@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 |
lovelydinosaur commentedNov 13, 2015
Out of curiosity, what do you use for estimated page counts? Follow up... I guess |
syphar commentedNov 13, 2015
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) |
xordoquy commentedNov 13, 2015
Sounds sensible to me. |
lovelydinosaur commentedNov 16, 2015
|
lovelydinosaur commentedNov 16, 2015
Indeed. Making this easier to eliminate might be a good plan |
lovelydinosaur commentedNov 30, 2015
Milestoning to push this to the top for a final review. |
allow setting a custom Django Paginator class
lovelydinosaur commentedNov 30, 2015
Thanks@syphar! |
syphar commentedDec 1, 2015
thanks@tomchristie and@xordoquy :) |
…ation