Search code examples
pythondjangodjango-admincustomizationdjango-admin-actions

Custom actions in Django Admin


In my Django app, I have a Newsletter model. Now I'd like to be able to send the newsletter (and even resend it) from Django Admin.

I could do this with a hook on the Model.save() method but is there another way that is not tied to the Model?

Thanks.


Solution

  • Admin actions allow you to easily hook up custom actions which can be performed on selected items from the admin's list pages.