(value)
Displays a green up chevron if value > 0, and a red down chevron if value < 0
Displays a green up chevron if value > 0, and a red down chevron if value < 0
Displays a green up chevron if value > 0 and a red down chevron if value < 0
def chevron(value):
    """
    Displays a green up chevron if value > 0, and a red down chevron if value < 0
    """
    if value > 0:
        return format_html('<span class="fa fa-chevron-up" style="color: #006400;"></span>')
    elif value < 0:
        return format_html('<span class="fa fa-chevron-down" style="color: #8b0000;"> </span>')
    else:
        return ''
def chevron ( value ) : if value > 0 : return format_html ( '<span class="fa fa-chevron-up" style="color: #006400;"></span>' ) elif value < 0 : return format_html ( '<span class="fa fa-chevron-down" style="color: #8b0000;"> </span>' ) else : return ''