Opened 6 years ago

Closed 6 years ago

#14900 closed (fixed)

Allow override of Admin paginator.

Reported by: Adam Vandenberg Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: admin pagination
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


This patch allows the user to override the Paginator object used by the Admin changelist view. It is based on r14828 which adds this support to generic views. It also partially addresses #4065, in the sense that the user can now add a custom paginator that "disables" pagination, or always shows everything on page 1, etc.

Attachments (1)

admin-paginator.diff (9.1 KB) - added by Adam Vandenberg 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Adam Vandenberg

Attachment: admin-paginator.diff added

comment:1 Changed 6 years ago by Julien Phalip

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

I can't think of a reason why not, and the patch is looking good.

comment:2 Changed 6 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

(In [14997]) Fixed #14900 -- Added ability to override the paginator class used in a ModelAdmin. Thanks, Adam Vandenberg.

Note: See TracTickets for help on using tickets.
Back to Top