Ticket #15175: localflavour_cl_form_2.diff

File localflavour_cl_form_2.diff, 1020 bytes (added by Brandon M Height, 14 years ago)
  • tests/regressiontests/forms/localflavor/cl.py

     
    3636            '78.412.790-7': '78.412.790-7',
    3737            '8.334.6043': '8.334.604-3',
    3838            '76793310-K': '76.793.310-K',
     39            '76793310-k': '76.793.310-K',
    3940        }
    4041        invalid = {
    4142            '11.111.111-0': error_invalid,
  • django/contrib/localflavor/cl/forms.py

     
    7474        tuple.
    7575        """
    7676        rut = smart_unicode(rut).replace(' ', '').replace('.', '').replace('-', '')
    77         return rut[:-1], rut[-1]
     77        return rut[:-1], rut[-1].upper()
    7878
    7979    def _format(self, code, verifier=None):
    8080        """
Back to Top