I assume he meant required=True, because being required is what causes
'' to not be allowed.

On Apr 1, 8:38 pm, Michael <[EMAIL PROTECTED]> wrote:
> > TOPIC_CHOICES=[('', '-- pick one --'), ('key1', '...'), ...]
>
> Thanks, using an empty string for the value seems to do the trick. Is
> there somewhere in the documentation that explains this behavior? I'm
> not able to locate it anywhere.
>
> > And required=False for the ChoiceField (which is the default).
>
> Are you sure? the newforms documentation [1] seems to indicate that
> required=True is the default for all Fields.
>
> [1]http://www.djangoproject.com/documentation/newforms/#required
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to