Hi
I am using django 1.4.3 and have a field in form
PROFILE_TYPE = (
('public', 'Public'),
('private', 'Private'),
)
profile_type = forms.CharField(max_length=10, widget=RadioSelect
(choices=PROFILE_TYPE),
initial='Public',
required=False
)
I want that when i open this form the radio button with choice public should be pre selected.
Can anybody explain what mistake you are doing ?
Thanks
--
Regards
Nikhil Verma
+91-958-273-3156
--
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.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment