@register.inclusion_tag('status_label.html')
def render_status(status, status_display=None):
    if status in ERRORS:
        label_cls = 'danger'
    elif status in SUCCESSES:
        label_cls = 'success'
    else:
        label_cls = 'default'
    return {'label_cls': label_cls, 'status': status_display or status}
dataset/ETHPy150Open mirumee/saleor/saleor/core/templatetags/status.py/render_status/original