def login_required(function=None, message=None, login_url=None):
    actual_decorator = user_passes_test(
        lambda u: u.is_authenticated(),
        message=message,
        login_url=login_url
    )

    if function:
        return actual_decorator(function)
    return actual_decorator
Write text "as-is".
dataset/ETHPy150Open thoas/django-backward/backward/decorators.py/login_required--crossover with--dataset/ETHPy150Open base4sistemas/pyescpos/escpos/impl/epson.py/GenericESCPOS.textout