wcs_olap: improve display of decimal values (for french users)
This commit is contained in:
parent
45a1ba23a8
commit
7e1fc353f3
|
@ -51,7 +51,8 @@ class CubeMixin(object):
|
|||
for cell, value in row:
|
||||
if stringify:
|
||||
if cell.type is float:
|
||||
value = formats.number_format(value, use_l10n=True) + u' %'
|
||||
# FIXME find how to format decimal number using locale with Django
|
||||
value = ('%05.2f' % float(value)).replace('.', ',') + u' %'
|
||||
if isinstance(value, datetime.timedelta):
|
||||
s = ''
|
||||
if value.days:
|
||||
|
|
Loading…
Reference in New Issue