From 0528736959c070e67de417182d31417b32051c4c Mon Sep 17 00:00:00 2001 From: Elliott Fawcett Date: Wed, 25 Jul 2018 03:55:36 -0500 Subject: [PATCH] Add COFA USPS abbreviations to normalized states dictionary (#303) --- docs/changelog.rst | 2 ++ localflavor/us/us_states.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 7a9919e5b..a16c23873 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -17,6 +17,8 @@ Modifications to existing flavors: - Allowed invalid message to be overridden in ESIdentityCardNumberField (`gh-339 `_). +- Fix COFA validation for USStateField + (`gh-303 `_) Other changes: diff --git a/localflavor/us/us_states.py b/localflavor/us/us_states.py index d1eaa8bc0..1f75471e8 100644 --- a/localflavor/us/us_states.py +++ b/localflavor/us/us_states.py @@ -242,6 +242,7 @@ 'fl': 'FL', 'fla': 'FL', 'florida': 'FL', + 'fm': 'FM', 'fsm': 'FM', 'ga': 'GA', 'georgia': 'GA', @@ -279,6 +280,7 @@ 'massachussetts': 'MA', 'md': 'MD', 'me': 'ME', + 'mh': 'MH', 'mi': 'MI', 'mich': 'MI', 'michigan': 'MI', @@ -337,6 +339,7 @@ 'pennsylvania': 'PA', 'pr': 'PR', 'puerto rico': 'PR', + 'pw': 'PW', 'republic of palau': 'PW', 'republic of the marshall islands': 'MH', 'rhode island': 'RI',