Skip to content

default_per_page in Pagination #1390

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

py39cptCiolacu
Copy link

@py39cptCiolacu py39cptCiolacu commented Jun 1, 2025

I've added a new attribute for Pagination - default_per_page.

  • if per_page is not provided per_page = default_per_page
  • if per_page is invalid (less than 1) AND error_out = False, per_page = default_per_page

fixes #1362

@py39cptCiolacu py39cptCiolacu changed the title fixes #1362 #1362 - default_per_page in Pagination Jun 1, 2025
@davidism davidism changed the title #1362 - default_per_page in Pagination default_per_page in Pagination Jun 1, 2025
@py39cptCiolacu py39cptCiolacu requested a review from davidism June 2, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

provide a default_per_page setting
2 participants