django/contrib/localflavor/us/models.py update USStateField to act as a normal CharField with choices.
|Reported by:||Paul McLanahan||Owned by:||Karen Tracey|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The current implementation of the USStateField model field in the localflavor/us module does not act like a normal CharField with choices. It does not cause the model to get a get_<fieldname>_display method, and it does not appear to obey blank=True rules like other CharFields would. It is for these reasons that I don't see why this can't be a simple subclass of django.db.models.fields.CharField.
Note: Possibly related to #4092.
Change History (9)
comment:1 Changed 8 years ago by
|Owner:||changed from nobody to Paul McLanahan|
|Status:||new → assigned|
comment:3 Changed 7 years ago by
|Owner:||changed from Paul McLanahan to Karen Tracey|
|Status:||assigned → new|