Re: Permissions help
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 Taylor wrote: > > > 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. > > TIA, > > Brandon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Permissions help
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 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. > TIA, > Brandon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Permissions help
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 like the cleaner way to do it. TIA, Brandon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.