Python django.contrib.admin.views.decorators.staff_member_required() Examples
The following are 2
code examples of django.contrib.admin.views.decorators.staff_member_required().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.contrib.admin.views.decorators
, or try the search function
.
Example #1
Source File: views.py From xblog with Apache License 2.0 | 5 votes |
def as_view(cls, **initkwargs): view = super(AdminRequiredMixin, cls).as_view(**initkwargs) return staff_member_required(view)
Example #2
Source File: decorators.py From django-htk with MIT License | 5 votes |
def cpq_admin_required(*args, **kwargs): return staff_member_required(*args, **kwargs)