On Jun 26, 8:29 am, Huuuze <[EMAIL PROTECTED]> wrote: > How can I add an empty value as the initial value?
At the moment you have do a bit of leg-work for this. Something like the following should work (untested):: from django.contrib.localflavor.us.us_states import STATE_CHOICES from django.contrib.localflavor.us.forms import USStateField class YourModelForm(forms.ModelForm): class Meta: ... YOUR_STATE_CHOICES = list(STATE_CHOICES) YOUR_STATE_CHOICES.insert(0, ('', '---------')) state = USStateField(widget=forms.Select( choices=YOUR_STATE_CHOICES)) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---