﻿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
22286	TypedChoiceField rejects valid input with coerce=float	johnnybrown7@…	nobody	"{{{
django.VERSION
# >> (1, 5, 5, 'final', 0)
from django.forms.fields import TypedChoiceField
tcf = TypedChoiceField(choices=[(0.0, 'ugh'), (0.5, 'meh'), (1.0, 'yay')], coerce=float)

tcf.to_python('0.0')
# >> 0.0

tcf.to_python('0.5')
# >> 0.5

tcf.to_python('0')
# raises ValidationError('Select a valid choice. 0 is not one of the available choices.')
# same thing happens with tc.to_python('1')
}}}

float('0') works just fine, and produces a value in the choices, so why does the validation fail?"	Uncategorized	closed	Uncategorized	1.5	Normal	worksforme			Unreviewed	0	0	0	0	0	0
