#3130: Fix for BooleanFields in newforms
-------------------------------------------------+--------------------------
Reporter: ben <[EMAIL PROTECTED]> | Owner: adrian
Status: reopened | Component:
django.newforms
Version: SVN | Resolution:
Keywords: | Stage:
Design decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-------------------------------------------------+--------------------------
Comment (by Marty Alchin <[EMAIL PROTECTED]>):
I fought with this particular issue for a while, and I have to agree with
ubernostrum and ben. I can definitely understand situations like "I agree
to the terms of service" and "I am 30 years old or older" and maybe even
"I hereby place this content in the public domain", but I can't imagine
these to be the norm.
It does seem the W3C considered this to be the case, however, as their
[http://www.w3.org/TR/html4/interact/forms.html#h-17.13.2 definition of
successful controls] lists checkboxes only in the "on" position.
Naturally, browsers implemented this such that unchecked checkboxes aren't
submitted at all, and it seems that Django is simply following suit.
In terms of the early Web, however, an unsubmitted checkbox rarely meant
that a form was in error. Instead, it typically indicated that a
particular bit of code wouldn't be processed. Throwing an error in this
case would seem counter-intuitive to most developers, while those few
situations that do in fact require a checked checkbox would easily merit
an explicit required=True in the form definition.
--
Ticket URL: <http://code.djangoproject.com/ticket/3130#comment:7>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---