How to restrict access to certain groups in django class based view

后端 未结 0 502
醉酒成梦
醉酒成梦 2021-01-29 23:58

My views.py have a mix of def and ClassViews:

@login_required(login_url=\'login\')
@allowed_users(allowed_roles=[\'Admin\',         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题