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

    === Attributes ===
    value:
        the numerator of the division.
    arg:
        the denominator of the division.
    """
    try:
        return round(int(value) / int(arg), 2)
    except (ValueError, ZeroDivisionError):
        return None
Number division filter for django template language

    === Attributes ===
    value:
        the numerator of the division.
    arg:
        the denominator of the division.
    
Number division filter for django template language
Attributes
value:
the numerator of the division.
arg:
the denominator of the division.
Number division filter for django template language Attributes value : the numerator of the division . arg : the denominator of the division .
def divide(value: Any, arg: Any) -> Optional[float]:
    try:
        return round(int(value) / int(arg), 2)
    except (ValueError, ZeroDivisionError):
        return None
def divide ( value : Any , arg : Any ) -> Optional [ float ] : try : return round ( int ( value ) / int ( arg ) , 2 ) except ( ValueError , ZeroDivisionError ) : return None
Number division filter for django template language
 Attributes
value:
the numerator of the division.
Number division filter for django template language Attributes value : the numerator of the division .
"""Number division filter for django template language

    === Attributes ===
    value:
        the numerator of the division.
    arg:
        the denominator of the division.
    """
value
Any
arg
Any