Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15023 -- Made US states list a tuple to be a bit more backward…

…s compatible after r15058. Thanks, timo.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 84660f0f3cc56ef64018f19ab8336502dcc5a26c 1 parent 4658338
Jannis Leidel authored January 05, 2011
4  django/contrib/localflavor/us/us_states.py
@@ -152,10 +152,10 @@
152 152
 
153 153
 
154 154
 # All US states and territories plus DC and military mail.
155  
-STATE_CHOICES = sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES, key=lambda obj: obj[1])
  155
+STATE_CHOICES = tuple(sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES, key=lambda obj: obj[1]))
156 156
 
157 157
 # All US Postal Service locations.
158  
-USPS_CHOICES = sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES + COFA_STATES, key=lambda obj: obj[1])
  158
+USPS_CHOICES = tuple(sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES + COFA_STATES, key=lambda obj: obj[1]))
159 159
 
160 160
 STATES_NORMALIZED = {
161 161
     'ak': 'AK',

0 notes on commit 84660f0

Please sign in to comment.
Something went wrong with that request. Please try again.