Django admin - How to disable "Delete each record" option for all the models at once

137 views
Skip to first unread message

girish shabadimath

unread,
Apr 10, 2012, 1:27:40 AM4/10/12
to django...@googlegroups.com
Hi all,
Is there a way to remove "Delete each record" option for all the models in admin?
We have option to disable delete_selected action using - "admin.site.disable_action('delete_selected')". Looking for same feature to do on each record (other then altering ModelAdmin's has_delete_permission method)
--
Girish M S

creecode

unread,
Apr 10, 2012, 11:32:43 AM4/10/12
to django...@googlegroups.com
Hello Girish,

Would ModelAdmin.has_delete_permission do the trick?


On Monday, April 9, 2012 10:27:40 PM UTC-7, girishms wrote:

Is there a way to remove "Delete each record" option for all the models in admin?

Toodle-looooooooo..............
creecode
Reply all
Reply to author
Forward
0 new messages