From 615e59fc6df59e2ca9145344de5ef659226bbcfb Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 11 Aug 2022 16:58:00 +0100 Subject: [PATCH] Updated form error handling --- ref-test/app/tools/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/app/tools/forms.py b/ref-test/app/tools/forms.py index 8be1aab..5165d10 100644 --- a/ref-test/app/tools/forms.py +++ b/ref-test/app/tools/forms.py @@ -57,5 +57,5 @@ def get_dataset_choices(): return dataset_choices def send_errors_to_client(form): - errors = [*form.errors] + errors = [*form.errors.values()] return jsonify({ 'error': errors}), 400 \ No newline at end of file