mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove status_code addition
This commit is contained in:
parent
027a7c88de
commit
aa7fcb3601
@ -68,9 +68,6 @@ def exception_handler(exc, context):
|
||||
)
|
||||
|
||||
if response is not None:
|
||||
# For an error response, include status code information
|
||||
response.data['status_code'] = response.status_code
|
||||
|
||||
# Convert errors returned under the label '__all__' to 'non_field_errors'
|
||||
if '__all__' in response.data:
|
||||
response.data['non_field_errors'] = response.data['__all__']
|
||||
|
Loading…
Reference in New Issue
Block a user