Ticket #15023: 15023.diff

File 15023.diff, 847 bytes (added by Tim Graham, 14 years ago)
  • django/contrib/localflavor/us/us_states.py

    diff --git a/django/contrib/localflavor/us/us_states.py b/django/contrib/localflavor/us/us_states.py
    index f1a3d73..0da47d5 100644
    a b OBSOLETE_STATES = (  
    152152
    153153
    154154# All US states and territories plus DC and military mail.
    155 STATE_CHOICES = sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES, key=lambda obj: obj[1])
     155STATE_CHOICES = tuple(sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES, key=lambda obj: obj[1]))
    156156
    157157# All US Postal Service locations.
    158 USPS_CHOICES = sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES + COFA_STATES, key=lambda obj: obj[1])
     158USPS_CHOICES = tuple(sorted(US_STATES + US_TERRITORIES + ARMED_FORCES_STATES + COFA_STATES, key=lambda obj: obj[1]))
    159159
    160160STATES_NORMALIZED = {
    161161    'ak': 'AK',
Back to Top