#5959: BooleanField should clean the string 'False' to boolean False
------------------------+---------------------------------------------------
Reporter: SmileyChris | Owner: nobody
Status: new | Component: django.newforms
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
------------------------+---------------------------------------------------
Currently the comment says:
{{{
# Explicitly check for the string '0', which is what as hidden field
# will submit for False.
}}}
But that's just blatantly incorrect, the `HiddenInput` widget submits the
string `'False'` for `False`.
There are a couple of solutions here, I have chosen the first in the
initial patch, due to the fact it's in-line with what happens already:
1. The `BooleanField` should clean `'False'` to `False`
2. The `HiddenInput` should render `False` as `''`
3. A new `HiddenBooleanInput` widget should be created and linked to
`BooleanField.hidden_widget` (ugh)
--
Ticket URL: <http://code.djangoproject.com/ticket/5959>
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
-~----------~----~----~----~------~----~------~--~---