Hello Simon, I confirm, updated the project to 1.11.1 and it is solved.
Thanks for taking the time to check. Thomas. On Thursday, May 11, 2017 at 8:30:52 PM UTC+4, Simon Charette wrote: > > Hello Thomas, > > Probably caused by #28075 [0], fixed in 1.11.1. > > Cheers, > Simon > > [0] https://code.djangoproject.com/ticket/28075 > > Le jeudi 11 mai 2017 11:39:41 UTC-4, Alti a écrit : >> >> 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. >> >> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/23caa820-9f20-4738-a643-b5d3294eb3c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

