django/tests/regressiontests/forms
Malcolm Tredinnick abcf1cb36d Fixed #5957 -- Enforce the "required" attribute on BooleanField in newforms.
This has been the documented behaviour for ages, but it wasn't correctly
implemented. A required BooleanField must be True/checked, since False values
aren't submitted. Ideal for things like "terms of service" agreements.

Backwards incompatible (since required=True is the default for all fields).

Unclear who the original patch was from, but Tai Lee and Alex have kept it up
to date recently.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-30 10:44:56 +00:00
..
localflavor Fixed #6291 -- Fixed error in CASocialInsuranceNumberField documentation and error message. Thanks, jeff+django@ivany.org and arien 2008-01-02 05:23:21 +00:00
__init__.py
error_messages.py Fixed the fix from [7775]. 2008-06-28 10:55:26 +00:00
extra.py Fixed #5917 -- More error robustness in date parsing in SelectDateWidget, plus 2008-03-20 07:44:46 +00:00
fields.py Fixed #5957 -- Enforce the "required" attribute on BooleanField in newforms. 2008-06-30 10:44:56 +00:00
forms.py Fixed #4860: added 'for' attributes to labels in newforms widgets. Thanks to Ivan Sagalaev and batiste@dosimple.ch for the patches. 2008-06-18 16:33:04 +00:00
models.py Fixed #5975 -- Gave `ModelChoiceField` and `ModelMultipleChoiceField` ability to specify custom error messages. 2007-11-18 20:25:23 +00:00
regressions.py Fixed #4860: added 'for' attributes to labels in newforms widgets. Thanks to Ivan Sagalaev and batiste@dosimple.ch for the patches. 2008-06-18 16:33:04 +00:00
tests.py Fixed #3961 -- Added South African localflavor. Thanks, Russell Cloran. 2007-12-02 18:43:01 +00:00
util.py Fixed #3457 -- Allow overridding of error messages for newforms Fields. 2007-10-28 05:40:26 +00:00
widgets.py Fixed #4860: added 'for' attributes to labels in newforms widgets. Thanks to Ivan Sagalaev and batiste@dosimple.ch for the patches. 2008-06-18 16:33:04 +00:00