Re: Permissions help

2010-03-12 Thread Brandon Taylor
Thanks raj, I'll give that a shot. On Mar 12, 11:11 am, raj wrote: > If you want to impose the restriction only upon delete through admin > interface, try to override modelAdmin's has_delete_permission() > method. Or else, model.delete(). > > On Mar 12, 8:37 pm, Brandon

Re: Permissions help

2010-03-12 Thread raj
If you want to impose the restriction only upon delete through admin interface, try to override modelAdmin's has_delete_permission() method. Or else, model.delete(). On Mar 12, 8:37 pm, Brandon Taylor wrote: > I need to add a custom permission to only allow deletes on

Permissions help

2010-03-12 Thread Brandon Taylor
Hi Everyone, I need to add a custom permission to only allow deletes on an object if it has a certain property and the user is in a specific group, and I need it to work in Django admin. Possible? I was thinking I might just override the template and remove the delete link, but permissions seems