Ticket #12467: 12467.diff

File 12467.diff, 684 bytes (added by Knut Nesheim, 15 years ago)
  • django/db/models/fields/__init__.py

     
    517517
    518518        if not ansi_date_re.search(value):
    519519            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)
    521521        # Now that we have the date string in YYYY-MM-DD format, check to make
    522522        # sure it's a valid date.
    523523        # We could use time.strptime here and catch errors, but datetime.date
Back to Top