wcs_olap: improve display of decimal values (for french users)
This commit is contained in:
parent
ddfc6c468a
commit
62089e7951
|
@ -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:
|
||||
|
|
Reference in New Issue