From aa7fcb36012da7d45bbe0dcc2ff844c1ca5bd8bd Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 17 May 2022 08:23:39 +1000 Subject: [PATCH] Remove status_code addition --- InvenTree/InvenTree/exceptions.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/InvenTree/InvenTree/exceptions.py b/InvenTree/InvenTree/exceptions.py index 8403cbf4c8..46b1a1ee0a 100644 --- a/InvenTree/InvenTree/exceptions.py +++ b/InvenTree/InvenTree/exceptions.py @@ -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__']