#9022: Allow US armed forces state codes for USStateField
------------------------------------------------------------+---------------
Reporter: Daniel Pope <[email protected]> | Owner:
dougvanhorn
Status: reopened | Milestone:
Component: django.contrib.localflavor | Version:
1.0
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------------------+---------------
Changes (by dougvanhorn):
* status: closed => reopened
* resolution: wontfix =>
Comment:
I'm reopening this ticket because I don't think
[http://code.djangoproject.com/ticket/10308#comment:3 Adrian's reasoning]
is sound, based on the fact that there are non-US states in the
us_states.py module, such as:
* American Somoa
* Guam
* Northern Mariana Islands
* Puerto Rico
* Virgin Islands
I would also point to the USStateField documentation:
{{{
#!python
class USStateField(Field):
"""
A form field that validates its input is a U.S. state name or
abbreviation.
It normalizes the input to the standard two-leter postal service
abbreviation for the given state.
"""
}}}
Which, rather plainly, states that the intent of the field is to represent
two-letter postal service abbreviations.
If we're to believe us_states.py should only represent the 50 states with
a star on the flag, we need to patch the us_states.py module to remove the
US territories listed above.
--
Ticket URL: <http://code.djangoproject.com/ticket/9022#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---