Hi,

I want to have a field in a form class which will render as select in
html. But, I want default text shown as "Select Blood Type". My
declaration is

gender = forms.ChoiceField(required=False,choices =
USER_BLOOD_CHOICES).

But, if I add an option value in html, as <option value="0">Select
Blood Type"</option>. I get an error, as this is not valid value (as
this is not required and user may not select an option). How can I
handle this?

thanks

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

Reply via email to