Никстер Никстер - 4 months ago 68
Python Question

How disable django admin pagination?

I need turn off django admin pagination. I use mttp in django and I need disable pagination on some admin module.

How I can do it?

Or how I can make pagination only by parents?

Answer

If you're using Django 1.8 (the newest version), there is a new setting on the ModelAdmin class called show_full_result_count that I believe will do what you're looking for. You can set it to false and it will disable the pagination on the Django admin view.

Reference: https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.show_full_result_count