I use Django newforms,I met a problem
UserRole=(['admin','administrator'],['user','Normal User'])
user_role =
forms.CharField(widget=forms.RadioSelect(choices=UserRole),error_messages={'required':u'You
must choose one!'})
the code is rendered to html is:
<ul><li><label><input type="radio" name="user_role" value="admin" /> Administrator</label></li>
<li><label><input type="radio" name="user_role" value="user" /> Normal User</label></li>
</ul>
I do NOT like the <ul><li> etc, I hope it can be rendered to simple format,
<label><input type="radio" name="user_role" value="admin" /> Administrator</label>
<label><input type="radio" name="user_role" value="user" /> Normal User</label>
I want to get ride of the <ul><li>, could you guys help me?
Best Regards
-Simon Li
--
Collin Grady
Sentimentality -- that's what we call the sentiment we don't share.
-- Graham Greene
Please post questions like this to the django-users list. This list
(django-developers) is for the development of Django itself, not the use
of Django.
Thanks,
Malcolm
On Jun 30, 2008, at 21:39, Malcolm Tredinnick <malcolm@pointy-