Ticket #12467: 12467.diff
File 12467.diff, 684 bytes (added by , 15 years ago) |
---|
-
django/db/models/fields/__init__.py
517 517 518 518 if not ansi_date_re.search(value): 519 519 raise exceptions.ValidationError( 520 _('Enter a valid date in YYYY-MM-DD format. '))520 _('Enter a valid date in YYYY-MM-DD format. Invalid value: %s') % value) 521 521 # Now that we have the date string in YYYY-MM-DD format, check to make 522 522 # sure it's a valid date. 523 523 # We could use time.strptime here and catch errors, but datetime.date