After some searching i've gave up with select field with localflavor
select widget.
Could someone give an example of this code ?
My current code:
from django.contrib.localflavor.us.forms import *
class LocalForm(forms.Form):
testchoice = [('test','select')]
test = forms.ChoiceField(choices=testchoice) # works just fine
state = USStateSelect() # doesn't work at all
state_new = forms.Choicefield(widget=USStateSelect()) # renders
empty select field
Any help greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---