Code

Opened 3 years ago

Closed 3 years ago

#14900 closed (fixed)

Allow override of Admin paginator.

Reported by: adamv 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:

Description

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 adamv 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by adamv

comment:1 Changed 3 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

comment:2 Changed 3 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.