﻿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
9336	CheckboxInput should render 'False' value as unchecked	Bob Thomas	nobody	"Currently, BooleanField will accept a value of 'False' and convert it to a boolean False in cleaned_data, for the case where it accepts data from a hidden field. However, if it is rendered as a CheckboxInput widget again, it will be rendered as checked, as the string 'False' from the initial data is converted to a True value.

{{{
Failed example:
    w.render('is_cool', 'False')
Expected:
    u'<input type=""checkbox"" name=""is_cool"" />'
Got:
    u'<input checked=""checked"" type=""checkbox"" name=""is_cool"" value=""False"" />'
}}}

This was happening to me in a strange case of a form validating for the preview stage of FormPreview, but failing validation after the POST, but there are probably other cases where someone might want to render a hidden value of 'False' into a CheckboxInput."		closed	Forms	1.0		fixed			Accepted	1	0	0	0	0	0
