Author: russellm
Date: 2010-08-28 07:31:12 -0500 (Sat, 28 Aug 2010)
New Revision: 13657
Modified:
django/branches/releases/1.2.X/django/contrib/localflavor/in_/in_states.py
Log:
[1.2.X] Fixed #14166 -- Modified the list of state choices in the Indian
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.
Modified:
django/branches/releases/1.2.X/django/contrib/localflavor/in_/in_states.py
===================================================================
--- django/branches/releases/1.2.X/django/contrib/localflavor/in_/in_states.py
2010-08-28 12:28:56 UTC (rev 13656)
+++ django/branches/releases/1.2.X/django/contrib/localflavor/in_/in_states.py
2010-08-28 12:31:12 UTC (rev 13657)
@@ -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 = {
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.