Remove format hack which isn't py2.6-friendly.

This commit is contained in:
Lance Edgar 2015-10-13 20:49:43 -05:00
parent 768c7cec16
commit d1d905c570

View file

@ -159,7 +159,9 @@ class CurrencyFieldRenderer(formalchemy.FieldRenderer):
value = self.raw_value value = self.raw_value
if value is None: if value is None:
return '' 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): class YesNoFieldRenderer(CheckBoxFieldRenderer):