human
I wrote the below code

    def decorated(request, *args, **kwargs):
        if request.user.is_authenticated():
            next = request.GET.get('next', '/')
            return HttpResponseRedirect(next)
        return func(request, *args, **kwargs)
    return decorated

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

def not_authenticated(func):