I have around 50 admin models which have ModelAdmin as base class.Now I want to remove delete feature for all the 50 models. I think there are two ways.
- Redefine has_delete_permission method to return false and remove 'delete_selected' action for all the 50 models (lot of work).
- Do the same thing as mentioned above in django.contrib.admin.AdminModel. which means altering the source code.
I don't want to alter the sourcecode. Is their any other way to do this expect above two ways?