Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
ChoiceField, TypedChoiceField, ModelChoiceField and empty_label
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ristretto.rb  
View profile  
 More options Jul 2, 6:56 pm
From: "ristretto.rb" <ristretto...@gmail.com>
Date: Thu, 2 Jul 2009 15:56:01 -0700 (PDT)
Local: Thurs, Jul 2 2009 6:56 pm
Subject: ChoiceField, TypedChoiceField, ModelChoiceField and empty_label
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
maplye  
View profile  
 More options Jul 3, 8:17 pm
From: maplye <map...@gmail.com>
Date: Sat, 4 Jul 2009 08:17:11 +0800
Local: Fri, Jul 3 2009 8:17 pm
Subject: Re: ChoiceField, TypedChoiceField, ModelChoiceField and empty_label
I also agree that

2009/7/3 ristretto.rb <ristretto...@gmail.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zweb  
View profile  
 More options Jul 5, 3:26 pm
From: zweb <traderash...@gmail.com>
Date: Sun, 5 Jul 2009 12:26:44 -0700 (PDT)
Local: Sun, Jul 5 2009 3:26 pm
Subject: Re: ChoiceField, TypedChoiceField, ModelChoiceField and empty_label
I also agree this is a needed feature.

On Jul 3, 5:17 pm, maplye <map...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google