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
This commit is contained in:
Jannis Leidel 2011-01-05 22:40:01 +00:00
parent 465833834c
commit 84660f0f3c
1 changed files with 2 additions and 2 deletions

View File

@ -152,10 +152,10 @@ OBSOLETE_STATES = (
# All US states and territories plus DC and military mail. # 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. # 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 = { STATES_NORMALIZED = {
'ak': 'AK', 'ak': 'AK',