Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str FunctionDef arguments args NameParam defaults vararg kwarg body If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num If BoolOpAnd BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad NameLoad BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Return Call NameLoad NameLoad NameLoad NameLoad orelse Raise NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list
N/A N/A urlparse functools wraps django.conf settings django.contrib messages django.shortcuts render django.contrib.auth REDIRECT_FIELD_NAME django.core.exceptions PermissionDenied django.utils.translation ugettext_lazy _ django.contrib.auth.views redirect_to_login staff_member_required N/A N/A view_func login_url N/A None N/A N/A 
    Ensure that the user is a logged-in staff member.

    * If not authenticated, redirect to a specified login URL.
    * If not staff, show a 403 page

    This decorator is based on the decorator with the same name from
    django.contrib.admin.view.decorators.  This one is superior as it allows a
    redirect URL to be specified.
     N/A N/A login_url None N/A N/A login_url N/A getattr settings LOGIN_URL _checklogin N/A N/A request N/A args kwargs N/A N/A N/A N/A N/A request user is_active N/A N/A request user is_staff N/A N/A N/A view_func request args kwargs N/A N/A N/A N/A N/A request user is_authenticated N/A N/A path N/A N/A request build_absolute_uri N/A N/A login_scheme login_netloc N/A N/A N/A urlparse urlparse login_url N/A 2 N/A N/A current_scheme current_netloc N/A N/A N/A urlparse urlparse path N/A 2 N/A N/A N/A N/A login_scheme N/A login_scheme current_scheme N/A N/A login_netloc N/A login_netloc current_netloc N/A N/A path N/A N/A request get_full_path N/A N/A N/A messages warning request N/A _ You must log in to access this page N/A N/A redirect_to_login path login_url REDIRECT_FIELD_NAME N/A N/A PermissionDenied N/A N/A wraps view_func N/A _checklogin N/A login_forbidden N/A N/A view_func template_name status N/A login_forbidden.html 403 N/A N/A 
    Only allow anonymous users to access this view.
     _checklogin N/A N/A request N/A args kwargs N/A N/A N/A N/A N/A N/A request user is_authenticated N/A N/A N/A view_func request args kwargs N/A N/A render request template_name status status N/A N/A wraps view_func N/A _checklogin N/A