diff --git a/django/contrib/localflavor/cl/forms.py b/django/contrib/localflavor/cl/forms.py index 48219e88af..23a2209a10 100644 --- a/django/contrib/localflavor/cl/forms.py +++ b/django/contrib/localflavor/cl/forms.py @@ -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): """ diff --git a/tests/regressiontests/forms/localflavor/cl.py b/tests/regressiontests/forms/localflavor/cl.py index 15b8c7b285..b2b4562a53 100644 --- a/tests/regressiontests/forms/localflavor/cl.py +++ b/tests/regressiontests/forms/localflavor/cl.py @@ -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,