﻿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
18303	Wrong comparison in render method of CheckboxInput class.	blind	nobody	"In line 511 of django.forms.widget, inside the 'render' method of CheckboxInput class, you can see this comparison:


{{{
if not (value is True or value is False or value is None or value == ''):
}}}


Because in Python the 'is' keyword tests object identity, if value is an object which is emulating a bool type, the comparison wont work.

I think, it should be:


{{{
if not (value == True or value == False or value == None or value == ''):
}}}

What do you think?
"	Bug	closed	Forms	1.4	Normal	invalid			Unreviewed	1	0	0	0	0	0
