From d1d905c570ecfd67dc18c51bcd987b772121ff9f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 13 Oct 2015 20:49:43 -0500 Subject: [PATCH] Remove format hack which isn't py2.6-friendly. --- tailbone/forms/renderers/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tailbone/forms/renderers/common.py b/tailbone/forms/renderers/common.py index 1769080e..5d2aa330 100644 --- a/tailbone/forms/renderers/common.py +++ b/tailbone/forms/renderers/common.py @@ -159,7 +159,9 @@ class CurrencyFieldRenderer(formalchemy.FieldRenderer): value = self.raw_value if value is None: return '' - return '$ {0:0,.2f}'.format(value) + # TODO: Add py2.6-compatible way to include thousands separator + # (comma). Apparently the ',' trick is py2.7+ only. + return '$ {0:0.2f}'.format(value) class YesNoFieldRenderer(CheckBoxFieldRenderer):