Sorry I made a typo in last email . Can anybody explain what mistake i am doing ?
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 > ) > Thanks On Mon, Jan 28, 2013 at 11:05 AM, Nikhil Verma <varma.nikhi...@gmail.com>wrote: > 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 > -- 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+unsubscr...@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.