lingrlongr wrote:
> Submitted ticket #8663 for the following:
> 
> When a ModelForm? is used to display a form for a Model, the fields
> defined with a choices option insert a "-------" value for the first
> option when the form is rendered. If you override a field and manually
> specify the choices for a Select widget, this "-------" does not
> appear as the first choice.
> 
I believe this is by design, to allow you the option of forcing the user
to select a specific value.

> # models.py
> from django.db import models
> 
> MY_CHOICES = (
>   (0, 'Zero'),
>   (1, 'One'),
> )
> 
So wouldn't it be possible to put another choice, {"", "--------") at
the top of your list?

[...]
regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/

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