Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5939 -- Added normalization for New Brunswick in the Canadian …

…provinces.

Thanks, rajesh.dhawan@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4cbc8c62cf0f1e5408425c355cde7b021eb4a31e 1 parent e2b03bd
Malcolm Tredinnick authored
1  AUTHORS
@@ -101,6 +101,7 @@ answer newbie questions, and generally made Django that much better:
101 101
     Alex Dedul
102 102
     deric@monowerks.com
103 103
     Max Derkachev <mderk@yandex.ru>
  104
+    Rajesh Dhawan <rajesh.dhawan@gmail.com>
104 105
     Sander Dijkhuis <sander.dijkhuis@gmail.com>
105 106
     Jordan Dimov <s3x3y1@gmail.com>
106 107
     dne@mayonnaise.net
2  django/contrib/localflavor/ca/ca_provinces.py
@@ -33,6 +33,8 @@
33 33
     'british columbia': 'BC',
34 34
     'mb': 'MB',
35 35
     'manitoba': 'MB',
  36
+    'nb': 'NB',
  37
+    'new brunswick': 'NB',
36 38
     'nf': 'NF',
37 39
     'newfoundland': 'NF',
38 40
     'newfoundland and labrador': 'NF',
4  tests/regressiontests/forms/localflavor/ca.py
@@ -147,6 +147,10 @@
147 147
 u'NS'
148 148
 >>> f.clean('  manitoba ')
149 149
 u'MB'
  150
+>>> f.clean(' new brunswick ')
  151
+u'NB'
  152
+>>> f.clean('NB')
  153
+u'NB'
150 154
 >>> f.clean('T2S 2H7')
151 155
 Traceback (most recent call last):
152 156
 ...

0 notes on commit 4cbc8c6

Please sign in to comment.
Something went wrong with that request. Please try again.