@register.filter<EOL>def sub(value, arg):
try:<EOL><INDENT>nvalue, narg = handle_float_decimal_combinations(<EOL>valid_numeric(value), valid_numeric(arg), '<STR_LIT:->')<EOL>return nvalue - narg<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>try:<EOL><INDENT>return value - arg<EOL><DEDENT>except Exception:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT><DEDENT>
Subtract the arg from the value.