Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 84660f0f3cc56ef64018f19ab8336502dcc5a26c 1 parent 4658338
@jezdez jezdez authored
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',
Please sign in to comment.
Something went wrong with that request. Please try again.