main/templatetags/filters.py
def multiply(value: Any, arg: Any) -> Optional[Union[int, float]]:
    """Number multiplication filter for django template language.

    === Attributes ===
    value:
        the first number to be multiplied.
    arg:
        the second number to be multiplied.
    """
    try:
        if isinstance(arg, str) or isinstance(value, str):
            return 0

        return round(value * arg, 1)
    except (ValueError, TypeError):
        return None
Number multiplication filter for django template language.

    === Attributes ===
    value:
        the first number to be multiplied.
    arg:
        the second number to be multiplied.
    
Number multiplication filter for django template language.
Attributes
value:
the first number to be multiplied.
arg:
the second number to be multiplied.
Number multiplication filter for django template language . Attributes value : the first number to be multiplied . arg : the second number to be multiplied .
def multiply(value: Any, arg: Any) -> Optional[Union[int, float]]:
    try:
        if isinstance(arg, str) or isinstance(value, str):
            return 0
        return round(value * arg, 1)
    except (ValueError, TypeError):
        return None
def multiply ( value : Any , arg : Any ) -> Optional [ Union [ int , float ] ] : try : if isinstance ( arg , str ) or isinstance ( value , str ) : return 0 return round ( value * arg , 1 ) except ( ValueError , TypeError ) : return None
Number multiplication filter for django template language.
Number multiplication filter for django template language .
"""Number multiplication filter for django template language.

    === Attributes ===
    value:
        the first number to be multiplied.
    arg:
        the second number to be multiplied.
    """
value
Any
arg
Any