Hey, that’s a good question.

The admin uses Django’s built in save / create / delete methods to manipulate objects so either approach would require some adjustments for the admin.

I have another article about Django admin where I demostrate how to add custom actions to Django admin. In the article implmented the pessimistic approach:

Some packages, such as django-fsm, are implementing the optimistic approach by overriding the save method so they should work nicely with Django admin.

Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store