Commits

mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 953868e

Fixed #8111 -- Error message typo fix. Thanks mzgur.

  • Participants
  • Parent commits 804ef09

Comments (0)

Files changed (1)

File django/db/models/fields/__init__.py

                 value, usecs = value.split('.')
                 usecs = int(usecs)
             except ValueError:
-                raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[ss[.uuuuuu]] format.')
+                raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format.')
         else:
             usecs = 0
         kwargs = {'microsecond': usecs}
                     return datetime.datetime(*time.strptime(value, '%Y-%m-%d')[:3],
                                              **kwargs)
                 except ValueError:
-                    raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[ss[.uuuuuu]] format.')
+                    raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format.')
 
     def get_db_prep_value(self, value):
         # Casts dates into the format expected by the backend