-
-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ValidationError false positive on nested inputs (#943)
Reverts parts of PR 909.
- Loading branch information
Showing
2 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
- case: ValidationError_nested_message | ||
main: | | ||
from django.core.exceptions import ValidationError | ||
ValidationError({ | ||
'list': [ | ||
'list error 1', | ||
'list error 2' | ||
], | ||
'plain_str': 'message', | ||
'plain_error': ValidationError('message'), | ||
'list_error': [ | ||
ValidationError('list error 1', code='test'), | ||
ValidationError('list error 2', code='test'), | ||
] | ||
}) | ||
ValidationError([ | ||
'message 1', | ||
ValidationError('message 2'), | ||
['nested 1', 'nested 2'], | ||
]) |