Re: Django admin - hide remove link

2011-07-04 Thread Michał Sawicz
Dnia 2011-07-04, pon o godzinie 14:15 -0700, galgal pisze:
> How can I hide remove link in Django admin? I need to hide it in my
> code, not in permissions (only user with id=1 can see it no matter if
> any users are superusers)

Override has_delete_permission [1] on your ModelAdmin.

https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_delete_permission

-- 
Michał (Saviq) Sawicz 


signature.asc
Description: This is a digitally signed message part


Django admin - hide remove link

2011-07-04 Thread galgal
How can I hide remove link in Django admin? I need to hide it in my code, 
not in permissions (only user with id=1 can see it no matter if any users 
are superusers)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/2cpWateci3YJ.
To post to this group, send email to django-users@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.