Not for model form, if a ChoiceField is based on foreign Key. It is
getting values from the referenced table using the __unicode__ method
in that table and ignoring the choices field passed to it.

On Mar 27, 7:57 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 27, 2008 at 9:49 PM, Greg <[EMAIL PROTECTED]> wrote:
> >  class SurveyForm(ModelForm):
> >     experience = forms.ChoiceField(widget=forms.RadioSelect)
>
> AChoiceFieldrequires you to pass in a set of choices for it to use.
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~---------~--~----~------------~-------~--~----~
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