Ticket #15175: localflavour_cl_form_2.diff
File localflavour_cl_form_2.diff, 1020 bytes (added by , 14 years ago) |
---|
-
tests/regressiontests/forms/localflavor/cl.py
36 36 '78.412.790-7': '78.412.790-7', 37 37 '8.334.6043': '8.334.604-3', 38 38 '76793310-K': '76.793.310-K', 39 '76793310-k': '76.793.310-K', 39 40 } 40 41 invalid = { 41 42 '11.111.111-0': error_invalid, -
django/contrib/localflavor/cl/forms.py
74 74 tuple. 75 75 """ 76 76 rut = smart_unicode(rut).replace(' ', '').replace('.', '').replace('-', '') 77 return rut[:-1], rut[-1] 77 return rut[:-1], rut[-1].upper() 78 78 79 79 def _format(self, code, verifier=None): 80 80 """