Hello group, first post for me!

Anyone know the equivalent of checked_by_default for the
CheckboxSelectMultiple widget? I'm using it like so:

myinput = forms.MultipleChoiceField(
        choices=((OPTIONONE, 'option1'),(OPTIONTWO, 'option2')),
        required=False,
        widget=forms.CheckboxSelectMultiple
        )

The behavior I want is for each input in the checkbox list to default
to checked unless the form is rendered with submitted data which would
override this default value.

Thanks!

James

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to