Skip to content

Commit

Permalink
[1.2.X] Fixed #14166 -- Modified the list of state choices in the Ind…
Browse files Browse the repository at this point in the history
…ian localflavor to be a list of tuples, not just a list of values. Thanks to gogna for the report and patch.

Backport of r13656 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Aug 28, 2010
1 parent be7f912 commit 174940c
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions django/contrib/localflavor/in_/in_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,43 @@
"""

STATE_CHOICES = (
'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',
('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'),

# Union Territories
'AN', 'Andaman and Nicobar',
'CH', 'Chandigarh',
'DN', 'Dadra and Nagar Haveli',
'DD', 'Daman and Diu',
'DL', 'Delhi',
'LD', 'Lakshadweep',
'PY', 'Pondicherry',
('AN', 'Andaman and Nicobar'),
('CH', 'Chandigarh'),
('DN', 'Dadra and Nagar Haveli'),
('DD', 'Daman and Diu'),
('DL', 'Delhi'),
('LD', 'Lakshadweep'),
('PY', 'Pondicherry'),
)

STATES_NORMALIZED = {
Expand Down

0 comments on commit 174940c

Please sign in to comment.