mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Typo fix
This commit is contained in:
parent
6512c0061e
commit
263ac01727
@ -79,7 +79,7 @@ def exception_handler(exc, context):
|
|||||||
|
|
||||||
# Convert errors returned under the label '__all__' to 'non_field_errors'
|
# Convert errors returned under the label '__all__' to 'non_field_errors'
|
||||||
if '__all__' in response.data:
|
if '__all__' in response.data:
|
||||||
response.data['non_field_errors'] = response.data['all']
|
response.data['non_field_errors'] = response.data['__all__']
|
||||||
del response.data['__all__']
|
del response.data['__all__']
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user