diff --git a/AUTHORS b/AUTHORS index 564cd0a1397..d0bf6502de3 100644 --- a/AUTHORS +++ b/AUTHORS @@ -181,6 +181,7 @@ answer newbie questions, and generally made Django that much better: Luke Plant plisk Daniel Poelzleithner + polpak@yahoo.com J. Rademaker Michael Radziej ramiro diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 3849ee73b98..ba2e362f3a3 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -869,6 +869,12 @@ class USStateField(Field): def get_manipulator_field_objs(self): return [oldforms.USStateField] + def formfield(self, **kwargs): + from django.contrib.localflavor.us.forms import USStateSelect + defaults = {'widget': USStateSelect} + defaults.update(kwargs) + return super(USStateField, self).formfield(**defaults) + class XMLField(TextField): def __init__(self, verbose_name=None, name=None, schema_path=None, **kwargs): self.schema_path = schema_path