In this case, I think he can subclass it and override the validate
method[0] and simply allow any choice to pass, right?

Cheers,
AT


[0]
https://code.djangoproject.com/browser/django/trunk/django/forms/fields.py#L780


On Wed, Jan 18, 2012 at 1:54 PM, Tom Evans <tevans...@googlemail.com> wrote:

> On Wed, Jan 18, 2012 at 3:51 PM, Andre Terra <andrete...@gmail.com> wrote:
> > https://docs.djangoproject.com/en/dev/ref/forms/fields/#choicefield
> >
> https://docs.djangoproject.com/en/dev/ref/forms/fields/#django.forms.MultipleChoiceField
> >
> >
>
> That is how I almost replied, but a MultipleChoiceField constrains the
> submitted values to be within a predefined list of acceptable values.
> You couldn't use a MultipleChoiceField to collect an arbitrary number
> of arbitrary strings, it would fail validation.
>
> Cheers
>
> Tom
>
> --
> 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.
>
>

-- 
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