module documentation
Undocumented
Function | staff |
Decorator for views that checks that the user is logged in and is a staff member, redirecting to the login page if necessary. |
def staff_member_required(view_func=None, redirect_field_name=REDIRECT_FIELD_NAME, login_url='admin:login'):
(source)
¶
Decorator for views that checks that the user is logged in and is a staff member, redirecting to the login page if necessary.