def login_required(func):
    decorated_func = django_l_r(func)
decorated_func.__dict__['login_is_required'] = True
return decorated_func

@login_required
def authenticatedd_view(request):
    pass
Check if a function has a decorator