django-import-export icon indicating copy to clipboard operation
django-import-export copied to clipboard

Float and Decimal widgets should use LANGUAGE_CODE

Open manelclos opened this issue 6 years ago • 2 comments

Hi!

When exporting a FloatField, DecimalField, etc. the result uses the . as decimal separator. I was just wondering if instead, it should use the decimal separator for LANGUAGE_CODE defined in settings.py.

https://github.com/django-import-export/django-import-export/blob/master/import_export/widgets.py#L58

What do you think?

manelclos avatar Oct 31 '19 14:10 manelclos

+1

zbynekdrlik avatar Nov 27 '19 08:11 zbynekdrlik

Yes, I do not see why not. That would make sense to me, and should be quite an easy fix!

andrewgy8 avatar May 25 '20 09:05 andrewgy8

This was added in #1501

matthewhegarty avatar Sep 15 '23 20:09 matthewhegarty