Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #17798 -- Tweaked the CA localflavor.

Thanks shelldweller.
  • Loading branch information...
commit 46648b641d86b663f825227df5af5473f13a3fb4 1 parent 73f7d34
@aaugustin aaugustin authored
View
6 django/contrib/localflavor/ca/ca_provinces.py
@@ -8,11 +8,6 @@
This exists in this standalone file so that it's only imported into memory
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 = (
('AB', 'Alberta'),
@@ -56,6 +51,7 @@
'pei': 'PE',
'p.e.i.': 'PE',
'prince edward island': 'PE',
+ 'pq' : 'QC',
'qc': 'QC',
'quebec': 'QC',
'sk': 'SK',
View
3  docs/releases/1.5.txt
@@ -44,6 +44,9 @@ Django 1.5 also includes several smaller improvements worth noting:
* :mod:`django.utils.timezone` provides a helper for converting aware
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
=====================================
View
1  tests/regressiontests/localflavor/ca/tests.py
@@ -93,6 +93,7 @@ def test_CAProvinceField(self):
'BC': 'BC',
'nova scotia': 'NS',
' manitoba ': 'MB',
+ 'pq': 'QC',
}
invalid = {
'T2S 2H7': error_format,
Please sign in to comment.
Something went wrong with that request. Please try again.