wcs_olap: improve display of decimal values (for french users)

This commit is contained in:
Benjamin Dauvergne 2016-06-18 09:32:45 +02:00
parent ddfc6c468a
commit 62089e7951
1 changed files with 2 additions and 1 deletions

View File

@ -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: