mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-17 19:52:25 +03:00
Update comments.
Signed-off-by: James Tanner <tanner.jc@gmail.com>
This commit is contained in:
parent
888ad71d3c
commit
1353bfa236
|
@ -219,8 +219,7 @@ class TestValidationErrorWithDjangoStyle(TestCase):
|
||||||
|
|
||||||
# mimic the logic in fields.Field.run_validators by saving the exception
|
# mimic the logic in fields.Field.run_validators by saving the exception
|
||||||
# detail into a list which will then be the detail for a new ValidationError.
|
# detail into a list which will then be the detail for a new ValidationError.
|
||||||
# this should not throw a KeyError or a TypeError even though
|
# this should not throw a ValueError on the date format placeholders ...
|
||||||
# the string has a substitutable substring ...
|
|
||||||
errors = []
|
errors = []
|
||||||
try:
|
try:
|
||||||
raise ValidationError(detail='Expects format %Y-%m-%d %H:%M:%S')
|
raise ValidationError(detail='Expects format %Y-%m-%d %H:%M:%S')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user