I noticed there is built-in add
filter, but I wasn\'t able to find divide
.
I am new to Django and not sure if there is a such filter.
I would use a custom template, but if you don't want to you can use the widthratio built in tag,
{% widthratio request.session.get_expiry_age 3600 1 %}
Another example
{% widthratio value 1150000 100 %}
Syntax:
{% widthratio parm1 parm2 parm3 %}
So basically its used for scaling images, but you can use it for division. What it does is: parm1/parm2 * parm3.
Hope this helps, more on widthratio here.