Tuesday, June 22, 2010

Forms - Widget - Radioselect - how to set initial value on a static form

I can't seem to find documentation on this anywhere, so I imagine
someone must have run into this.

if I had a radioselect Yes / No and I wanted the default value to be
'No', but I'm not loading this data from a database or anything, is
there a method to just insert an initial value so that the html comes
out as <option selected = True>No</option>

?

Any ideas? This is so basic it's killing me.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate