开发者

Django admin - hide remove link

How can I hide remove link i开发者_如何学Pythonn 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)


This is the wrong way to do things so you're going to find that you're working against the grain to accomplish this. Permissions/Groups are the appropriate way to handle something like this.

However if you insist you're likely going to need to kludge this by overriding the default admin templates.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜