Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.2.X] Fixed #14166 -- Modified the list of state choices in the Ind…

…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...
commit 174940cab2e689bc91388f4c6f3051331f41270d 1 parent be7f912
@freakboy3742 freakboy3742 authored
Showing with 35 additions and 35 deletions.
  1. +35 −35 django/contrib/localflavor/in_/in_states.py
View
70 django/contrib/localflavor/in_/in_states.py
@@ -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 = {
Please sign in to comment.
Something went wrong with that request. Please try again.