@register.simple_tag
def model_icon(model):
    if not icons_mapping in model:
        raise ValueError('Invalid icon name')
    return '<i class="fa fa-' + icons_mapping[model] + '"></i>'
dataset/ETHPy150Open gunnery/gunnery/gunnery/core/templatetags/core_extras.py/model_icon/swapped operands of `in`