I’m looking for a way to expose the pager limit as a form within admin views by adding a query argument such as &?pager_limit=50 or something similar so it can merge happily with the various exposed filters.
I haven’t really made any headway at all at solving the problem myself. I’ve been trawling through contrib.admin and contrib.users.admin and not able to find what I’m looking for.
Thanks
In order to make
list_per_pagedynamic we need to subclassChangeListsince the defaultChangeListclass sets thelist_per_pageonce.For instance:
Then override
get_changelistin the ModelAdmin subclass: