Hello,
With localization and thousand separator active, my foreign keys ids are rendered with a thousand separator in django forms and give me an invalid field during validation.
in settings.py:
USE_L10N = True
USE_THOUSAND_SEPARATOR = True
example :
<option value="17 943" selected="">Company something something</option> with the french localization
For now i just override the template django/forms/widgets/select_option.html with the safe filter :
<option value="{{ widget.value|safe }}"{% include "django/forms/widgets/attrs.html" %}>{{ widget.label }}</option>
I think it would be nicer to have the safe filter in the default template from django repository.
Now i file it here to see if people consider it as a bug or if this behavior is considered as normal and if others get this problem as well, before filing a ticket on
djangoproject.com.
Regards,
Thomas.