42👍
In your ModelAdmin definition, set list_per_page
:
class MyModelAdmin(admin.ModelAdmin):
list_per_page = 400
I believe you can also add the all
GET parameter to your query (ie, add ?all
to the end of your url), but that only works if you have less than 200 items, and this limit is hardcoded in the admin. Therefore it’s only useful if you have more than list_per_page
(100) and less than 200 items, but the admin will offer you a link for this anyway when this is the case.
0👍
You should set 400
to list_per_page as shown below to increase the number of items from 100
(Default) to 400
on each paginated Change List page:
# "admin.py"
@admin.register(Person)
class MyModelAdmin(admin.ModelAdmin):
list_per_page = 400 # Here
- How can I test if my redis cache is working?
- What does it mean for an object to be unscriptable?
- Calculate point based on distance and direction
- How can I automatically let syncdb add a column (no full migration needed)
Source:stackexchange.com