Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 86d4352

Browse files
Fix merge
1 parent cad7622 commit 86d4352

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎rest_framework_json_api/utils.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,7 @@ def format_drf_errors(response, context, exc):
440440
status=encoding.force_text(response.status_code),
441441
source='/included/%s' % identifier))
442442
else:
443-
errors.extend(_format_nested_error(error,
444-
status=encoding.force_text(response.status_code),
445-
source='/data/%s' % field))
443+
errors.append(error)
446444
elif isinstance(error, six.string_types):
447445
classes = inspect.getmembers(exceptions, inspect.isclass)
448446
# DRF sets the `field` to 'detail' for its own exceptions

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /