Opened 14 years ago

Closed 14 years ago

#15623 closed (fixed)

Wrong province code for Newfoundland in django.contrib.localflavor.ca

Reported by: Sergiy Kuzmenko Owned by: nobody
Component: contrib.localflavor Version: dev
Severity: Keywords: localflavor
Cc: s.kuzmenko@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

"NF" should be "NL" in http://code.djangoproject.com/browser/django/trunk/django/contrib/localflavor/ca/ca_provinces.py#L17

Province code changes several years ago. See http://en.wikipedia.org/wiki/Newfoundland_and_Labrador for reference

Also need new entries in PROVINCES_NORMALIZED to reflect this change:

"nf" : "NL",
"nl" : "NL",

Change History (2)

comment:1 by Sergiy Kuzmenko, 14 years ago

Yukon is also wrong: "YK" should be "YT".

Official ISO-3166 subdivision names for Canada are listed here: http://en.wikipedia.org/wiki/ISO_3166-2:CA

comment:2 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

In [15864]:

Fixed #15623 -- Corrected province codes for Canadian localflavor. Thanks to shelldweller for the report.

Note: See TracTickets for help on using tickets.
Back to Top