From 84660f0f3cc56ef64018f19ab8336502dcc5a26c Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Wed, 5 Jan 2011 22:40:01 +0000 Subject: [PATCH] Fixed #15023 -- Made US states list a tuple to be a bit more backwards compatible after r15058. Thanks, timo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15149 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/localflavor/us/us_states.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/localflavor/us/us_states.py b/django/contrib/localflavor/us/us_states.py index f1a3d73aaf..0da47d57b7 100644 --- a/django/contrib/localflavor/us/us_states.py +++ b/django/contrib/localflavor/us/us_states.py @@ -152,10 +152,10 @@ OBSOLETE_STATES = ( # 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',