Good day! I'm trying to find the solution to add list_per_page as a global parameter for all models in admin. I found out, that ModelAdmin has this parameter through ChangeList object and it has default value 100. But what if I want to set it 20 and it will be true for all models? I mean, if I need to change list_per_page for current model in admin, I need to add:
class CurrentModelAdmin(models.ModelAdmin):
list_per_page = 20
...
Is there any way to redefine ChangeList object to rewrite default value? For example as a LIST_PER_PAGE = 20 in a settings.py
And even better, how I can recieve it from frontend and work with that dynamicly?