US localflavor postal abbreviations
|Reported by:||ubernostrum||Owned by:||nobody|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
The attached patch does this by breaking down the choices into multiple fine-grained lists. It is backwards compatible in that its version of STATE_CHOICES contains all the choices present in the current STATE_CHOICES, but adds the following:
- STATE_CHOICES now also contains Armed Forces "state" abbreviations.
- A new tuple, USPS_CHOICES, contains all recognized USPS abbreviations, including independent nations which receive postal service from the United States.
- A new model field (USPostalCodeField) and form field (USPSSelect) are added, taking advantage of the new USPS_CHOICES tuple.
- Individual choice tuples are provided for: the "lower 48" states plus DC; all 50 states plus DC; all US territories; all US armed forces "states"; independent nations serviced by USPS; and obsolete abbreviations formerly recognized by USPS (e.g., the Panama Canal Zone).