Hi.
I want to have html-code:
<option selected="selected" value="3">3</option>
I do try it with forms.py:
pos = (
(1,1),
(2,2),
(3,3),
)
field1 = forms.CharField( widget=forms.widgets.Select(choices=pos))
but I get strings which not have parametr selected="selected".
How need change it so as to get it?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---