Using decorators for admin_only views in Django

后端 未结 0 1660
天命终不由人
天命终不由人 2020-12-14 00:35

Here I have the following function in views.py:

@login_required(login_url=\'login\')
@admin_only
def admin_home_view(request):
    context = {}
          


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