Add comma magic back to CurrencyFieldRenderer
No longer concerned with Python 2.6.
This commit is contained in:
parent
cd332f2287
commit
12e8b662a8
|
@ -165,9 +165,7 @@ class CurrencyFieldRenderer(formalchemy.FieldRenderer):
|
|||
value = self.raw_value
|
||||
if value is None:
|
||||
return ''
|
||||
# TODO: Add py2.6-compatible way to include thousands separator
|
||||
# (comma). Apparently the ',' trick is py2.7+ only.
|
||||
return '$ {0:0.2f}'.format(value)
|
||||
return '$ {:0,.2f}'.format(value)
|
||||
|
||||
|
||||
class YesNoFieldRenderer(CheckBoxFieldRenderer):
|
||||
|
|
Loading…
Reference in a new issue