Ticket #15175: localflavour_cl_form.diff

File localflavour_cl_form.diff, 1.0 KB (added by ersame, 4 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        verifier = rut[-1].upper()
     78        return rut[:-1], verifier
    7879
    7980    def _format(self, code, verifier=None):
    8081        """
Back to Top