#10456: Canada localflavor improvements/fixes
----------------------------------------+-----------------------------------
 Reporter:  mmulley                     |       Owner:  nobody    
   Status:  new                         |   Milestone:            
Component:  django.contrib.localflavor  |     Version:  SVN       
 Keywords:  localflavor ca              |       Stage:  Unreviewed
Has_patch:  1                           |  
----------------------------------------+-----------------------------------
 The Canadian localflavor package uses incorrect postal abbreviations for
 Newfoundland (NF, should be NL) and the Yukon (YK, should be YT). Previous
 bugs: #10365, #8478.

 There's a discussion in #10365 about the merits of changing the
 abbreviation and potentially breaking existing data. It's a tough
 question, since the abbreviation isn't simply an internal representation:
 it's a very common use case to use the postal abbreviation in addresses,
 and so the current version of ca.localflavor will generate incorrect
 output. This doesn't help with the issue of existing data, though, and I'm
 not quite sure what to do there.

 Two patches are attached. One updates to the correct abbreviations. The
 other maintains the current, incorrect abbreviations but normalizes the
 correct abbreviations (NL, YT) to the incorrect ones (NF, YK) instead of
 rejecting them, as the current version does.

 Both patches also include some other fixes and improvements:
 - More abbreviations and misspellings are accepted and normalized for
 province names
 - French province names are now accepted
 - CAPostalCodeField accepts and normalizes common postal code formats
 ('h4u5h7' -> 'H4U 5H7')

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10456>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to