Sep 14

django-batchadmin: Batch actions in the admin change list

I’m releasing a new project tonight: django-batchadmin. It looks like this:

Django with batchadmin enabled

Plenty of people have done this before with recipes or patches. But this is a project, and it’s distributed as a Django app, not with copy & paste or a diff. Also, since it’s being released post-1.0, it uses the latest and greatest in newforms-admin features.

The app is very minimal but customizable. There’s only one action included in the app: delete. Refer to the Getting Started page to add your own actions.

All functionality is added with a ModelAdmin subclass called BatchModelAdmin. This simply puts a checkbox in each row, specifies a change list template that wraps a form around the list, and makes the view accept POST requests, which it dispatches to the action code.

Stay tuned for some custom actions.

Page 1 of 1