Re: ChoiceField, TypedChoiceField, ModelChoiceField and empty_label

2009-07-05 Thread zweb

I also agree this is a needed feature.

On Jul 3, 5:17 pm, maplye  wrote:
> I also agree that
>
> 2009/7/3 ristretto.rb :
>
>
>
> > Hello,
>
> > I have stepped through code, and cruised the django docs, forums, and
> > internet in general looking for how to setup an empty label with
> > TypedChoiceField (or ChoiceField.)  I suspected it would be done
> > similar to the way it is done with ModelChoiceField.
>
> > With ModelChoiceField, we can specify anempty_label.  But, with
> > TypeChoice and Choice you have to put an empty field in our choices
> > list.  And, None doesn't work, it has to be ''.
>
> > I have code that is working fine.  But, my question is...  Is there
> > any design reasonempty_labelwas not included in the other Choice
> > fields?
>
> > thanks
> > ristretto
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: ChoiceField, TypedChoiceField, ModelChoiceField and empty_label

2009-07-03 Thread maplye

I also agree that

2009/7/3 ristretto.rb :
>
> Hello,
>
> I have stepped through code, and cruised the django docs, forums, and
> internet in general looking for how to setup an empty label with
> TypedChoiceField (or ChoiceField.)  I suspected it would be done
> similar to the way it is done with ModelChoiceField.
>
> With ModelChoiceField, we can specify an empty_label.  But, with
> TypeChoice and Choice you have to put an empty field in our choices
> list.  And, None doesn't work, it has to be ''.
>
> I have code that is working fine.  But, my question is...  Is there
> any design reason empty_label was not included in the other Choice
> fields?
>
> thanks
> ristretto
> >
>

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



ChoiceField, TypedChoiceField, ModelChoiceField and empty_label

2009-07-02 Thread ristretto.rb

Hello,

I have stepped through code, and cruised the django docs, forums, and
internet in general looking for how to setup an empty label with
TypedChoiceField (or ChoiceField.)  I suspected it would be done
similar to the way it is done with ModelChoiceField.

With ModelChoiceField, we can specify an empty_label.  But, with
TypeChoice and Choice you have to put an empty field in our choices
list.  And, None doesn't work, it has to be ''.

I have code that is working fine.  But, my question is...  Is there
any design reason empty_label was not included in the other Choice
fields?

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