Ticket #9022: armed_forces.diff

File armed_forces.diff, 1.8 KB (added by dougvanhorn, 16 years ago)

us_states patch to add Armed Forces entries.

  • django/contrib/localflavor/us/us_states.py

     
    1212    ('AS', 'American Samoa'),
    1313    ('AZ', 'Arizona'),
    1414    ('AR', 'Arkansas'),
     15    ('AA', 'Armed Forces Americas'),
     16    ('AE', 'Armed Forces Europe'),
     17    ('AP', 'Armed Forces Pacific'),
    1518    ('CA', 'California'),
    1619    ('CO', 'Colorado'),
    1720    ('CT', 'Connecticut'),
     
    6669)
    6770
    6871STATES_NORMALIZED = {
     72    'aa': 'AA',
     73    'ae': 'AE',
    6974    'ak': 'AK',
    7075    'al': 'AL',
    7176    'ala': 'AL',
     
    7378    'alaska': 'AK',
    7479    'american samao': 'AS',
    7580    'american samoa': 'AS',
     81    'ap': 'AP',
    7682    'ar': 'AR',
    7783    'ariz': 'AZ',
    7884    'arizona': 'AZ',
    7985    'ark': 'AR',
    8086    'arkansas': 'AR',
     87    'armed forces africa': 'AE',
     88    'armed forces americas': 'AA',
     89    'armed forces europe': 'AE',
     90    'armed forces pacific': 'AP',
     91    'armed forces canada': 'AE',
     92    'armed forces middle east': 'AE',
    8193    'as': 'AS',
    8294    'az': 'AZ',
    8395    'ca': 'CA',
  • tests/regressiontests/forms/localflavor/us.py

     
    190190<option value="AS">American Samoa</option>
    191191<option value="AZ">Arizona</option>
    192192<option value="AR">Arkansas</option>
     193<option value="AA">Armed Forces Americas</option>
     194<option value="AE">Armed Forces Europe</option>
     195<option value="AP">Armed Forces Pacific</option>
    193196<option value="CA">California</option>
    194197<option value="CO">Colorado</option>
    195198<option value="CT">Connecticut</option>
Back to Top