Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored August 08, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/db/models/fields/__init__.py
4  django/db/models/fields/__init__.py
@@ -630,7 +630,7 @@ def to_python(self, value):
630 630
                 value, usecs = value.split('.')
631 631
                 usecs = int(usecs)
632 632
             except ValueError:
633  
-                raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[ss[.uuuuuu]] format.')
  633
+                raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format.')
634 634
         else:
635 635
             usecs = 0
636 636
         kwargs = {'microsecond': usecs}
@@ -647,7 +647,7 @@ def to_python(self, value):
647 647
                     return datetime.datetime(*time.strptime(value, '%Y-%m-%d')[:3],
648 648
                                              **kwargs)
649 649
                 except ValueError:
650  
-                    raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[ss[.uuuuuu]] format.')
  650
+                    raise validators.ValidationError, _('Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format.')
651 651
 
652 652
     def get_db_prep_value(self, value):
653 653
         # Casts dates into the format expected by the backend

0 notes on commit 567b9f2

Please sign in to comment.
Something went wrong with that request. Please try again.