How to remove "Select all" options from Django model admin

Viewed 165

Django model admin allows to select all the objects in a page to take certain actions ('Delete selected' being one of them). After selecting all the model objects in a User model page, it gives an option to "Select all xxxx users" (xxxx being a number) as shown in the image.

Image showing 'select all' option

This allows the admin to select all the users and when exported to CSV, such a huge data size causes Gateway Timeout issue. We only want the admin to select the objects in a single page and not all of it in one go. Any help regarding this is appreciated.

1 Answers

If you don't click the Select all XXX users the action will be only performed on the ticked users (50) in your screenshot.

Related