{% load static %} {% load custom_tags_and_filters %} {% load billing_tags %}

{% for cap_discount in cap_discounts %} {% with cap_highest_amount=cap_discount.capdiscounttier_set.last.amount %} {% widthratio .75 1 cap_highest_amount as warn_limit %} {% endwith %} {% endfor %}