﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14807	django.utils.formats localize_input inserts thousands_separator into boolean values	Klaas van Schelven	nobody	"formats.localize_input(True)

I'm working in an environment where I've localized all my forms (set localize=True on all fields). I also have the USE_THOUSAND_SEPARATOR = True.

This results the value attr in my booleanfield to be set to ""T,rue"" (Dutch) or ""T.rue"" (US).

The ultimate culprit is django.utils.formats localize_input

There is a check there like so:

{{{
    if isinstance(value, (decimal.Decimal, float, int, long)):
}}}

which evaluates to True for Booleans (because booleans are ints, see ""issubclass(bool, int)"")

I do not currently have the time to provide tests etc. I do have a simple patch"	Uncategorized	closed	Internationalization	1.2	Normal	fixed			Ready for checkin	1	0	0	0	0	0
