From 263ac01727b91063a7c4baeff385c16f5db485c0 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 17 May 2022 00:35:59 +1000 Subject: [PATCH] Typo fix --- InvenTree/InvenTree/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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