Commit e1ad5430 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.2.X] Fixed #15175 -- Ensured that Chliean RUT checksum letters aren't case...

[1.2.X] 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.

Backport of r15450 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 40a13657
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ class CLRutField(RegexField):
        tuple.
        """
        rut = smart_unicode(rut).replace(' ', '').replace('.', '').replace('-', '')
        return rut[:-1], rut[-1]
        return rut[:-1], rut[-1].upper()

    def _format(self, code, verifier=None):
        """
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ class CLLocalFlavorTests(LocalFlavorTestCase):
            '78.412.790-7': '78.412.790-7',
            '8.334.6043': '8.334.604-3',
            '76793310-K': '76.793.310-K',
            '76793310-k': '76.793.310-K',
        }
        invalid = {
            '11.111.111-0': error_invalid,