django staff_member_required decorator code example
Example: django staff_member_required decorator
from django.contrib.admin.views.decorators import staff_member_required
@staff_member_required
def my_view(request):
...
from django.contrib.admin.views.decorators import staff_member_required
@staff_member_required
def my_view(request):
...