2007-08-11 18:04:19 +08:00
|
|
|
"""
|
|
|
|
A mapping of state misspellings/abbreviations to normalized abbreviations, and
|
|
|
|
an alphabetical list of states for use as `choices` in a formfield.
|
|
|
|
|
|
|
|
This exists in this standalone file so that it's only imported into memory
|
|
|
|
when explicitly needed.
|
|
|
|
"""
|
|
|
|
|
|
|
|
STATE_CHOICES = (
|
2010-08-28 20:28:56 +08:00
|
|
|
('KA', 'Karnataka'),
|
|
|
|
('AP', 'Andhra Pradesh'),
|
|
|
|
('KL', 'Kerala'),
|
|
|
|
('TN', 'Tamil Nadu'),
|
|
|
|
('MH', 'Maharashtra'),
|
|
|
|
('UP', 'Uttar Pradesh'),
|
|
|
|
('GA', 'Goa'),
|
|
|
|
('GJ', 'Gujarat'),
|
|
|
|
('RJ', 'Rajasthan'),
|
|
|
|
('HP', 'Himachal Pradesh'),
|
|
|
|
('JK', 'Jammu and Kashmir'),
|
|
|
|
('AR', 'Arunachal Pradesh'),
|
|
|
|
('AS', 'Assam'),
|
|
|
|
('BR', 'Bihar'),
|
|
|
|
('CG', 'Chattisgarh'),
|
|
|
|
('HR', 'Haryana'),
|
|
|
|
('JH', 'Jharkhand'),
|
|
|
|
('MP', 'Madhya Pradesh'),
|
|
|
|
('MN', 'Manipur'),
|
|
|
|
('ML', 'Meghalaya'),
|
|
|
|
('MZ', 'Mizoram'),
|
|
|
|
('NL', 'Nagaland'),
|
|
|
|
('OR', 'Orissa'),
|
|
|
|
('PB', 'Punjab'),
|
|
|
|
('SK', 'Sikkim'),
|
|
|
|
('TR', 'Tripura'),
|
|
|
|
('UA', 'Uttarakhand'),
|
|
|
|
('WB', 'West Bengal'),
|
2007-08-12 09:19:54 +08:00
|
|
|
|
|
|
|
# Union Territories
|
2010-08-28 20:28:56 +08:00
|
|
|
('AN', 'Andaman and Nicobar'),
|
|
|
|
('CH', 'Chandigarh'),
|
|
|
|
('DN', 'Dadra and Nagar Haveli'),
|
|
|
|
('DD', 'Daman and Diu'),
|
|
|
|
('DL', 'Delhi'),
|
|
|
|
('LD', 'Lakshadweep'),
|
|
|
|
('PY', 'Pondicherry'),
|
2007-08-11 18:04:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
STATES_NORMALIZED = {
|
2011-06-28 18:44:33 +08:00
|
|
|
'an': 'AN',
|
|
|
|
'andaman and nicobar': 'AN',
|
2007-08-11 18:04:19 +08:00
|
|
|
'andra pradesh': 'AP',
|
|
|
|
'andrapradesh': 'AP',
|
|
|
|
'andhrapradesh': 'AP',
|
|
|
|
'ap': 'AP',
|
2011-06-28 18:44:33 +08:00
|
|
|
'andhra pradesh': 'AP',
|
2007-08-11 18:04:19 +08:00
|
|
|
'ar': 'AR',
|
2011-06-28 18:44:33 +08:00
|
|
|
'arunachal pradesh': 'AR',
|
|
|
|
'assam': 'AS',
|
|
|
|
'as': 'AS',
|
|
|
|
'bihar': 'BR',
|
|
|
|
'br': 'BR',
|
|
|
|
'cg': 'CG',
|
|
|
|
'chattisgarh': 'CG',
|
|
|
|
'ch': 'CH',
|
|
|
|
'chandigarh': 'CH',
|
|
|
|
'daman and diu': 'DD',
|
|
|
|
'dd': 'DD',
|
|
|
|
'dl': 'DL',
|
|
|
|
'delhi': 'DL',
|
|
|
|
'dn': 'DN',
|
|
|
|
'dadra and nagar haveli': 'DN',
|
2007-08-11 18:04:19 +08:00
|
|
|
'ga': 'GA',
|
2011-06-28 18:44:33 +08:00
|
|
|
'goa': 'GA',
|
|
|
|
'gj': 'GJ',
|
|
|
|
'gujarat': 'GJ',
|
|
|
|
'himachal pradesh': 'HP',
|
2007-08-11 18:04:19 +08:00
|
|
|
'hp': 'HP',
|
2011-06-28 18:44:33 +08:00
|
|
|
'hr': 'HR',
|
|
|
|
'haryana': 'HR',
|
|
|
|
'jharkhand': 'JH',
|
|
|
|
'jh': 'JH',
|
|
|
|
'jammu and kashmir': 'JK',
|
|
|
|
'jk': 'JK',
|
|
|
|
'karnataka': 'KA',
|
|
|
|
'karnatka': 'KA',
|
|
|
|
'ka': 'KA',
|
|
|
|
'kerala': 'KL',
|
|
|
|
'kl': 'KL',
|
|
|
|
'ld': 'LD',
|
|
|
|
'lakshadweep': 'LD',
|
|
|
|
'maharastra': 'MH',
|
|
|
|
'mh': 'MH',
|
|
|
|
'maharashtra': 'MH',
|
|
|
|
'meghalaya': 'ML',
|
|
|
|
'ml': 'ML',
|
|
|
|
'mn': 'MN',
|
|
|
|
'manipur': 'MN',
|
|
|
|
'madhya pradesh': 'MP',
|
2007-08-11 18:04:19 +08:00
|
|
|
'mp': 'MP',
|
2011-06-28 18:44:33 +08:00
|
|
|
'mizoram': 'MZ',
|
2007-08-11 18:04:19 +08:00
|
|
|
'mizo': 'MZ',
|
2011-06-28 18:44:33 +08:00
|
|
|
'mz': 'MZ',
|
|
|
|
'nl': 'NL',
|
|
|
|
'nagaland': 'NL',
|
|
|
|
'orissa': 'OR',
|
2007-08-11 18:04:19 +08:00
|
|
|
'odisa': 'OR',
|
2011-06-28 18:44:33 +08:00
|
|
|
'orisa': 'OR',
|
2007-08-11 18:04:19 +08:00
|
|
|
'or': 'OR',
|
2011-06-28 18:44:33 +08:00
|
|
|
'pb': 'PB',
|
|
|
|
'punjab': 'PB',
|
|
|
|
'py': 'PY',
|
|
|
|
'pondicherry': 'PY',
|
|
|
|
'rajasthan': 'RJ',
|
|
|
|
'rajastan': 'RJ',
|
|
|
|
'rj': 'RJ',
|
|
|
|
'sikkim': 'SK',
|
|
|
|
'sk': 'SK',
|
|
|
|
'tamil nadu': 'TN',
|
|
|
|
'tn': 'TN',
|
|
|
|
'tamilnadu': 'TN',
|
|
|
|
'tamilnad': 'TN',
|
|
|
|
'tr': 'TR',
|
|
|
|
'tripura': 'TR',
|
|
|
|
'ua': 'UA',
|
|
|
|
'uttarakhand': 'UA',
|
|
|
|
'up': 'UP',
|
|
|
|
'uttar pradesh': 'UP',
|
|
|
|
'westbengal': 'WB',
|
|
|
|
'bengal': 'WB',
|
|
|
|
'wb': 'WB',
|
|
|
|
'west bengal': 'WB'
|
2007-08-12 09:19:54 +08:00
|
|
|
}
|