Ticket #12062: enhanced_chilean_rut_validation.diff
File enhanced_chilean_rut_validation.diff, 599 bytes (added by , 15 years ago) |
---|
-
django/contrib/localflavor/cl/forms.py
49 49 if value in EMPTY_VALUES: 50 50 return u'' 51 51 rut, verificador = self._canonify(value) 52 if self._algorithm(rut) == verificador :52 if self._algorithm(rut) == verificador.upper(): 53 53 return self._format(rut, verificador) 54 54 else: 55 55 raise ValidationError(self.error_messages['checksum'])