mirror of
https://github.com/django/django.git
synced 2024-12-25 18:46:22 +00:00
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:
parent
465833834c
commit
84660f0f3c
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user