I noticed there is built-in add filter, but I wasn\'t able to find divide.
add
divide
I am new to Django and not sure if there is a such filter.
You can use divisibleby
divisibleby
Returns True if the value is divisible by the argument. For example: {{ value|divisibleby:"3" }} If value is 21, the output would be True.
Returns True if the value is divisible by the argument.
For example:
{{ value|divisibleby:"3" }}
If value is 21, the output would be True.
You can see django docs