#5737: CheckboxSelectMultiple when you use choices, required=False is not
respected
--------------------------+-------------------------------------------------
Reporter:  DavidReynolds  |       Owner:  nobody         
  Status:  new            |   Component:  django.newforms
 Version:  SVN            |    Keywords:                 
   Stage:  Unreviewed     |   Has_patch:  0              
--------------------------+-------------------------------------------------
 if for example you do:

 {{{
 TOWN_CHOICES = (
     ('Norwich', 'Norwich'),
     ('Dereham','Dereham'),
 )

 town = forms.MultipleChoiceField(required=False, choices=TOWN_CHOICES,
 widget=forms.CheckboxSelectMultiple)
 }}}

 You cannot submit your form without selecting one of the choices, the form
 throws the following error:

 {{{
 Select a valid choice. That choice is not one of the available choices.
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5737>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to