Package django :: Package contrib :: Package localflavor :: Package ca :: Module ca_provinces
[hide private]
[frames] | no frames]

Module ca_provinces

source code

An alphabetical list of provinces and territories for use as `choices` in a formfield., and a mapping of province misspellings/abbreviations to normalized abbreviations

Source: http://www.canada.gc.ca/othergov/prov_e.html

This exists in this standalone file so that it's only imported into memory when explicitly needed.

Variables [hide private]
  PROVINCE_CHOICES = (('AB', 'Alberta'), ('BC', 'British Columbi...
  PROVINCES_NORMALIZED = {'ab': 'AB', 'alberta': 'AB', 'b.c.': '...
Variables Details [hide private]

PROVINCE_CHOICES

Value:
(('AB', 'Alberta'),
 ('BC', 'British Columbia'),
 ('MB', 'Manitoba'),
 ('NB', 'New Brunswick'),
 ('NF', 'Newfoundland and Labrador'),
 ('NT', 'Northwest Territories'),
 ('NS', 'Nova Scotia'),
 ('NU', 'Nunavut'),
...

PROVINCES_NORMALIZED

Value:
{'ab': 'AB',
 'alberta': 'AB',
 'b.c.': 'BC',
 'bc': 'BC',
 'british columbia': 'BC',
 'manitoba': 'MB',
 'mb': 'MB',
 'nb': 'NB',
...