Browse files

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...
1 parent 4658338 commit 84660f0f3cc56ef64018f19ab8336502dcc5a26c @jezdez jezdez committed Jan 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/localflavor/us/us_states.py
View
4 django/contrib/localflavor/us/us_states.py
@@ -152,10 +152,10 @@
# All US states and territories plus DC and military mail.
-STATE_CHOICES = sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES, key=lambda obj: obj[1])
+STATE_CHOICES = tuple(sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES, key=lambda obj: obj[1]))
# All US Postal Service locations.
-USPS_CHOICES = sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES + COFA_STATES, key=lambda obj: obj[1])
+USPS_CHOICES = tuple(sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES + COFA_STATES, key=lambda obj: obj[1]))
STATES_NORMALIZED = {
'ak': 'AK',

0 comments on commit 84660f0

Please sign in to comment.