Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15175 -- Ensured that Chliean RUT checksum letters aren't case…

… sensitive. Thanks to rvimer for the report, and to ersame for the patch.

H: Enter commit message.  Lines beginning with 'HG:' are removed.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 90a79ba39aa3eb8cf61f977db2d4fddde80665c9 1 parent 6631206
Russell Keith-Magee authored February 08, 2011
2  django/contrib/localflavor/cl/forms.py
@@ -74,7 +74,7 @@ def _canonify(self, rut):
74 74
         tuple.
75 75
         """
76 76
         rut = smart_unicode(rut).replace(' ', '').replace('.', '').replace('-', '')
77  
-        return rut[:-1], rut[-1]
  77
+        return rut[:-1], rut[-1].upper()
78 78
 
79 79
     def _format(self, code, verifier=None):
80 80
         """
1  tests/regressiontests/forms/localflavor/cl.py
@@ -36,6 +36,7 @@ def test_CLRutField(self):
36 36
             '78.412.790-7': '78.412.790-7',
37 37
             '8.334.6043': '8.334.604-3',
38 38
             '76793310-K': '76.793.310-K',
  39
+            '76793310-k': '76.793.310-K',
39 40
         }
40 41
         invalid = {
41 42
             '11.111.111-0': error_invalid,

0 notes on commit 90a79ba

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