Skip to content

Commit

Permalink
Fixed #17798 -- Tweaked the CA localflavor.
Browse files Browse the repository at this point in the history
Thanks shelldweller.
  • Loading branch information
aaugustin committed May 10, 2012
1 parent 73f7d34 commit 46648b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions django/contrib/localflavor/ca/ca_provinces.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
This exists in this standalone file so that it's only imported into memory This exists in this standalone file so that it's only imported into memory
when explicitly needed. when explicitly needed.
""" """
import warnings
warnings.warn(
'There have been recent changes to the CA localflavor. See the release notes for details',
RuntimeWarning
)


PROVINCE_CHOICES = ( PROVINCE_CHOICES = (
('AB', 'Alberta'), ('AB', 'Alberta'),
Expand Down Expand Up @@ -56,6 +51,7 @@
'pei': 'PE', 'pei': 'PE',
'p.e.i.': 'PE', 'p.e.i.': 'PE',
'prince edward island': 'PE', 'prince edward island': 'PE',
'pq' : 'QC',
'qc': 'QC', 'qc': 'QC',
'quebec': 'QC', 'quebec': 'QC',
'sk': 'SK', 'sk': 'SK',
Expand Down
3 changes: 3 additions & 0 deletions docs/releases/1.5.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Django 1.5 also includes several smaller improvements worth noting:
* :mod:`django.utils.timezone` provides a helper for converting aware * :mod:`django.utils.timezone` provides a helper for converting aware
datetimes between time zones. See :func:`~django.utils.timezone.localtime`. datetimes between time zones. See :func:`~django.utils.timezone.localtime`.


* In the localflavor for Canada, "pq" was added to the acceptable codes for
Quebec. It's an old abbreviation.

Backwards incompatible changes in 1.5 Backwards incompatible changes in 1.5
===================================== =====================================


Expand Down
1 change: 1 addition & 0 deletions tests/regressiontests/localflavor/ca/tests.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def test_CAProvinceField(self):
'BC': 'BC', 'BC': 'BC',
'nova scotia': 'NS', 'nova scotia': 'NS',
' manitoba ': 'MB', ' manitoba ': 'MB',
'pq': 'QC',
} }
invalid = { invalid = {
'T2S 2H7': error_format, 'T2S 2H7': error_format,
Expand Down

0 comments on commit 46648b6

Please sign in to comment.