Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8229 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 567b9f2e28b36a8aff64833734a4fbb242798dee 1 parent 9dfad99
@malcolmt malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/fields/__init__.py
View
4 django/db/models/fields/__init__.py
@@ -630,7 +630,7 @@ def to_python(self, value):
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}
@@ -647,7 +647,7 @@ def to_python(self, value):
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
Please sign in to comment.
Something went wrong with that request. Please try again.