1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

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
This commit is contained in:
Russell Keith-Magee
2011-02-08 11:59:38 +00:00
parent 66312066a0
commit 90a79ba39a
2 changed files with 2 additions and 1 deletions

View File

@@ -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):
"""