Hello, I'm running into something that I don't fully understand when I
do the following:

>from django.forms.widgets import Select
>s = Select(choices=[1,2,3])
>s.render("foo",None)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/django/forms/wi
dgets.py", line 404, in render
    options = self.render_options(choices, [value])
  File "/usr/lib/pymodules/python2.6/django/forms/wi
dgets.py", line 420, in render_options
    for option_value, option_label in chain(self.cho
ices, choices):
TypeError: 'int' object is not iterable

Is there something wrong with what I've done there that should cause
this error? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to