def is_authenticated_decorator(function):

    def wrapper(*args, **kwargs):
        if (args[0].is_logged_in == True):
            function(args[0])
    return wrapper
def is_authenticated_decorator(function):

    def wrapper(*args, **kwargs):
        if (args[0].is_logged_in == True):
            function(args[0])
    return wrapper