Remove format hack which isn't py2.6-friendly.
This commit is contained in:
parent
768c7cec16
commit
d1d905c570
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue