Re: django.forms.widgets.Select error

2010-04-08 Thread Tim Shaffer
Choices should be a list/tuple of lists/tuples in the form of (value,display). So this: choices = (('M','Male'),('F','Female'),) Would give you this: Male Female -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

django.forms.widgets.Select error

2010-04-08 Thread I. Laughlin
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 "", line 1, in File "/usr/lib/pymodules/python2.6/django/forms/wi dgets.