@register.function
@jinja2.contextfunction
def hasOneToOne(context, obj, attr):
    try:
        getattr(obj, attr)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/helpers.py/hasOneToOne