The doc page "Creating forms from models" (http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#topics- forms-modelforms) describes how "If the model field has choices set ... [snip] ... The choices will normally include the blank choice which is selected by default. ... "
I have a form that's not associated with a database model (i.e., form.Form) and I'm using the USStateSelect widget, but the blank choice isn't included in the STATE_CHOICE list. When the form loads, what I get is "Alabama" selected by default. I'd like to get the forms.ModelForm-style blank choice default selection behavior. I'm guessing some sort of super() def __init__ trickery is called for but am stumped so far ... Thanks, John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---