app/soc/models/countries.py
changeset 2737 5b43af491b93
parent 2735 74f0972f523f
child 2862 27971a13089f
equal deleted inserted replaced
2736:8f3935f0f4ba 2737:5b43af491b93
   264     "Zambia": ('.zm', 'Africa'),
   264     "Zambia": ('.zm', 'Africa'),
   265     "Zimbabwe": ('.zw', 'Africa'),
   265     "Zimbabwe": ('.zw', 'Africa'),
   266     }
   266     }
   267 
   267 
   268 # List of all countries and territories
   268 # List of all countries and territories
   269 COUNTRIES_AND_TERRITORIES = COUNTRY_INFO.keys() 
   269 COUNTRIES_AND_TERRITORIES = sorted(COUNTRY_INFO.keys())
   270 
   270 
   271 # Mapping of countries to their CCTLD
   271 # Mapping of countries to their CCTLD
   272 COUNTRIES_TO_CCTLD = dict((k, c) for k, (c, _) in COUNTRY_INFO.items()) 
   272 COUNTRIES_TO_CCTLD = dict((k, c) for k, (c, _) in COUNTRY_INFO.items()) 
   273 
   273 
   274 # Mapping of countries to their continent
   274 # Mapping of countries to their continent