human
Here's a good function header given the following:
I wrote the below code

    def _checklogin(request, *args, **kwargs):
        if (request.user.is_active and request.user.is_staff):
            return view_func(request, *args, **kwargs)
        assert hasattr(request, 'session'), "The    Django    admin    requires    session    middleware    to    be    installed.    Edit    your    MIDDLEWARE_CLASSES    setting    to    insert    'django.contrib.sessions.middleware.SessionMiddleware'."
        defaults = {'template_name': 'admin/login.html', 'authentication_form': AdminAuthenticationForm, 'extra_context': {'title': _('Log    in'), 'app_path': request.get_full_path(), REDIRECT_FIELD_NAME: request.get_full_path()}}
        return login(request, **defaults)
    return wraps(view_func)(_checklogin)

What's a good function header?
assistant
#Here's a good function header.

def staff_member_required(view_func):