From 34d8d16e56f6e1333103ee3e3ea688b0a98a253c Mon Sep 17 00:00:00 2001 From: Robert Clayton Date: Sat, 2 Aug 2025 22:40:35 -0500 Subject: [PATCH] Document paginator rendering setting --- docs/pages/pagination.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/pages/pagination.rst b/docs/pages/pagination.rst index 4faaaa87..626d9a0b 100644 --- a/docs/pages/pagination.rst +++ b/docs/pages/pagination.rst @@ -23,6 +23,14 @@ If you are using `SingleTableView`, the table will get paginated by default:: class PeopleListView(SingleTableView): table_class = PeopleTable +You can control the max number of page buttons rendered with `DJANGO_TABLES2_PAGE_RANGE` +in your settings.py:: + + DJANGO_TABLES2_PAGE_RANGE = 10 + +The default value of 10, in a table with 101 pages, would render +`1, 2, 3, 4, 5, 6, 7, 8, ..., 101` on page 1 of the table for example. + Disabling pagination ~~~~~~~~~~~~~~~~~~~~