diff --git a/InvenTree/InvenTree/exceptions.py b/InvenTree/InvenTree/exceptions.py index 78a494c9f2..5ba0d80bec 100644 --- a/InvenTree/InvenTree/exceptions.py +++ b/InvenTree/InvenTree/exceptions.py @@ -79,7 +79,7 @@ def exception_handler(exc, context): # Convert errors returned under the label '__all__' to 'non_field_errors' 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__'] return response