[Fixed]-How to show more than 100 items on each paginated "Change List" page in Django Admin?

42👍

See http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_per_page

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.

3👍

If you’re talking about admin, see this.

ModelAdmin.list_per_page

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

Leave a comment