From 9a3e4537cbd5c3aa8d154fe390749c1c33e5dc12 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 16 Oct 2011 13:59:22 +0200 Subject: [PATCH] Format floats with 2 decimals. Fix #39 --- budget/templates/list_bills.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index e763b032..895bb372 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -83,7 +83,7 @@ {{ bill.payer }} {{ bill.what }} {% for ower in bill.owers %}{{ ower.name }} {% endfor %} - {{ bill.amount }} ({{ bill.pay_each() }} {{ _("each") }}) + {{ "%0.2f"|format(bill.amount) }} ({{ "%0.2f"|format(bill.pay_each()) }} {{ _("each") }}) {{ _("edit") }} {{ _("delete") }}