2009/12/2 Continuation <selforgani...@gmail.com>:
> I use USStateField() from localflavor in one of my  models:
>
> class MyClass(models.Model):
>   state  = USStateField(blank=True)
>
> Then I made a form from that class:
>
> class MyClassForm(forms.ModelForm):
>    class Meta:
>        model   = MyClass
>
> When I display the form, the field "State" is a drop-down box with
> "Alabama" pre-selected.
>
> Is there any way to make the drop-down box to show no pre-selected
> value at all?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>
>

Maybe using default as argument to your field?

http://docs.djangoproject.com/en/dev/ref/models/fields/#default

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to