Skip to content

Improve PageNumberPagination docs by adding page_query_param customization example#9904

Merged
browniebroke merged 5 commits intoencode:mainfrom
kosbemrunal:improve-pagination-docs
Mar 1, 2026
Merged

Improve PageNumberPagination docs by adding page_query_param customization example#9904
browniebroke merged 5 commits intoencode:mainfrom
kosbemrunal:improve-pagination-docs

Conversation

@kosbemrunal
Copy link
Contributor

This PR adds a short example demonstrating how to customize
the page_query_param attribute in PageNumberPagination.

This clarifies how users can override the default page
query parameter when implementing custom pagination classes..

@auvipy auvipy self-requested a review February 28, 2026 04:38
auvipy
auvipy previously approved these changes Feb 28, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a brief documentation example showing how to customize PageNumberPagination.page_query_param so clients can use a non-default page query parameter.

Changes:

  • Document the default page query parameter for PageNumberPagination.
  • Add an example subclass overriding page_query_param (e.g., ?p=2).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@browniebroke browniebroke changed the title Improve PageNumberPagination docs by adding page_query_param customization example Improve PageNumberPaginationdocs by adding page_query_param customization example Mar 1, 2026
@browniebroke browniebroke changed the title Improve PageNumberPaginationdocs by adding page_query_param customization example Improve PageNumberPagination docs by adding page_query_param customization example Mar 1, 2026
@browniebroke browniebroke merged commit 8d4c2d0 into encode:main Mar 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants