Ticket #3069: django_invalid_date_i18n.diff
File django_invalid_date_i18n.diff, 542 bytes (added by , 18 years ago) |
---|
-
django/core/validators.py
140 140 try: 141 141 date(year, month, day) 142 142 except ValueError, e: 143 raise ValidationError, gettext('Invalid date: %s.' % e) 143 msg = gettext('Invalid date: %s') % gettext(str(e)) 144 raise ValidationError, msg 144 145 145 146 def isValidANSIDate(field_data, all_data): 146 147 if not ansi_date_re.search(field_data):