Can't get the forms.RadioSelect widget to render. I'm using svn
10559, I've looked over forms/widgets.py, but I don't know... I'm
able to use forms.CheckboxSelect just fine.
Is it Firefox giving me issues? What's going on here?
#forms.py
class PollForm(forms.Form):
def make_fields(self, poll):
for c in poll.choice_set.iterator():
self.fields[c.choice] = forms.CharField
(widget=forms.RadioSelect, label=c.choice)
#template
<form action="." method="POST">
{{ form.as_p }}
<input type="submit" value="Submit Votes" />
</form>
#source output from Firefox (missing fields)
<form action="." method="POST">
<p><label for="id_Cable_0">Cable:</label> <ul>
</ul></p>
<p><label for="id_Satelite_0">Satelite:</label> <ul>
</ul></p>
<p><label for="id_Regular TV_0">Regular TV:</label> <ul>
</ul></p>
<input type="submit" value="Submit Votes" />
</form>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---