开发者

Custom Tag for Hiding Views in Django

Is there a custom tag in Django (or written by somebody else) that supports displaying开发者_C百科/hiding views based on user roles and permissions?

Thanks in Advance!


What do you mean "hiding" views? Preventing a user from accessing them?

Check out the permission_required decorator

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜