djangocountadminchangelist

How can I hide the total count in changelist_view (Django admin)?


I want to hide the total displayed in changelist_view, as in the following image.

Django admin screen

I searched but couldn't find any way through admin customization. I know I can modify the template, but I wouldn't like to do it.

Is this possible without changing the templates?


Solution

  • I couldn't find a way to hide the count text without modifying the pagination.html file. Since there are no blocks in the code, I created the templates/admin/app-name/model-name/ folder and copied the pagination.html file there. Then, I modified it, putting the count text line as a comment.