mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #3457 -- Allow overridding of error messages for newforms Fields.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -146,7 +146,7 @@ class TestCase(unittest.TestCase):
|
||||
" context %d does not contain the"
|
||||
" error '%s' (actual errors: %s)" %
|
||||
(field, form, i, err,
|
||||
list(field_errors)))
|
||||
repr(field_errors)))
|
||||
elif field in context[form].fields:
|
||||
self.fail("The field '%s' on form '%s' in context %d"
|
||||
" contains no errors" % (field, form, i))
|
||||
|
||||
Reference in New Issue
Block a user