Ticket #17798: ca_provinces.py.patch
File ca_provinces.py.patch, 1.7 KB (added by , 13 years ago) |
---|
-
django/contrib/localflavor/ca/ca_provinces.py
8 8 This exists in this standalone file so that it's only imported into memory 9 9 when explicitly needed. 10 10 """ 11 import warnings12 warnings.warn(13 'There have been recent changes to the CA localflavor. See the release notes for details',14 RuntimeWarning15 )16 11 17 12 PROVINCE_CHOICES = ( 18 13 ('AB', 'Alberta'), … … 56 51 'pei': 'PE', 57 52 'p.e.i.': 'PE', 58 53 'prince edward island': 'PE', 54 'pq' : 'QC', 59 55 'qc': 'QC', 60 56 'quebec': 'QC', 61 57 'sk': 'SK', -
docs/releases/1.4.txt
621 621 company. It can be useful in testing scenarios where e.g. no database 622 622 interaction is needed. See :ref:`testcase_hierarchy_diagram`. 623 623 624 * Localflavor change for Canada: "pq" (an old abbreviation for Quebec) is 625 added to PROVINCES_NORMALIZED 626 624 627 Backwards incompatible changes in 1.4 625 628 ===================================== 626 629 -
tests/regressiontests/localflavor/ca/tests.py
93 93 'BC': 'BC', 94 94 'nova scotia': 'NS', 95 95 ' manitoba ': 'MB', 96 'pq': 'QC', 96 97 } 97 98 invalid = { 98 99 'T2S 2H7': error_format,