📜  django staff_member_required 装饰器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:19.583000             🧑  作者: Mango

代码示例1
from django.contrib.admin.views.decorators import staff_member_required

    @staff_member_required
    def my_view(request):
      ...