Kaydet (Commit) 9681e968 authored tarafından avas9366's avatar avas9366 Kaydeden (comit) Tim Graham

Fixed #30232 -- Corrected expected format in invalid DurationField error message.

üst 17455e92
......@@ -1587,7 +1587,7 @@ class DurationField(Field):
empty_strings_allowed = False
default_error_messages = {
'invalid': _("'%(value)s' value has an invalid format. It must be in "
"[DD] [HH:[MM:]]ss[.uuuuuu] format.")
"[DD] [[HH:]MM:]ss[.uuuuuu] format.")
}
description = _("Duration")
......
......@@ -75,7 +75,7 @@ class TestValidation(SimpleTestCase):
self.assertEqual(
cm.exception.message % cm.exception.params,
"'not a datetime' value has an invalid format. "
"It must be in [DD] [HH:[MM:]]ss[.uuuuuu] format."
"It must be in [DD] [[HH:]MM:]ss[.uuuuuu] format."
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment