Created
April 29, 2013 09:10
-
-
Save martync/5480544 to your computer and use it in GitHub Desktop.
Django aggregation in template filters.
{% if salary_advance.employee_advance_refund.all|sum:'refund_amount'|floatformat:2 < salary_advance.advance_amount|floatformat:2 %}
Refund Advance
{% endif %}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How could I get these values inside the template?