http://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms.Select
Here, it says I can do SELECT widgets. But how do I do that? It doesn\'t show any example on
class MyForm(forms.Form): CHOICES = (('Option 1', 'Option 1'),('Option 2', 'Option 2'),) field = forms.ChoiceField(choices=CHOICES) print MyForm().as_p() # out: Field: \nOption 1\nOption 2\n
Field: \nOption 1\nOption 2\n