Opened 4 years ago

Closed 4 years ago

#15623 closed (fixed)

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

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

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 Changed 4 years ago by shelldweller

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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