I found the same problem as ticket #5737. It was closed due to unable
to reproduce it, but I am seeing the same problem.
I have:
class QueryForm(f.Form):
status = f.ChoiceField(choices=STATUS_TYPES,
widget=f.CheckboxSelectMultiple(), required=False)
and the form validation errored:
status
* Select a valid choice. [] is not one of the available choices.
html source:
<ul class="errorlist"><li>status<ul class="errorlist"><li>Select a
valid choice. [] is not one of the available choices.</li></ul></li></
ul>
Ticket #5737 (closed: invalid)
CheckboxSelectMultiple when you use choices, required=False is not
respected
http://code.djangoproject.com/ticket/5737
can someone confirm?
thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---