﻿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
2640	[patch] django.forms.CheckboxField should be able to use is_required	torbjornthorsen@…	Adrian Holovaty	"There is currently no way of using the is_required attribut for a !CheckboxField.

Use case:
In some forms it is usual practice to but confirmation checkboxes that users must check (aknowleding EULA and such) before a form is considered complete. In my mind !ValidationError should be raised for !FormWrapper when this is not the case.

Notes:
The current version of !CheckboxField takes a validator_list, which may be useful, but these are only called when the checkbox is visible in request.POST, ie. when the user has checked the checkbox.
What is needed for the use case is a boolean validator to run even if checkbox is not visible in request.POST.

html2python: I did some testing, and html2python is only called if the checkbox has been checked, and as the checkbox widget is a boolean, I choose to just return true, as a situation where one would return false will not arise."	defect	closed	Validators	dev	normal	fixed	Manipulator Validator Checkbox	torbjornthorsen@…	Unreviewed	1	0	0	0	0	0
