Opened 8 months ago

Closed 8 months ago

#35254 closed New feature (wontfix)

New setting for ModelAdmin.list_per_page

Reported by: Patrick Hintermayer Owned by: nobody
Component: contrib.admin Version: 5.0
Severity: Normal Keywords: admin
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'd like to have a default setting to override ModelAdmin.list_per_page.
Currently I monkey patch this is my settings.py

Change History (1)

comment:1 by Mariusz Felisiak, 8 months ago

Component: Uncategorizedcontrib.admin
Resolution: wontfix
Status: newclosed

Thanks for this ticket, however creating a new setting is always controversial (we already have many of them). Moreover, you can achieve the same by using a ModelAdmin subclass, e.g.:

class MyModelAdmin(admin.ModelAdmin):
    list_per_page = 999

There is no need for a new setting.

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