From a533083d17b7d5e5b331a501113fb54814139a0a Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Wed, 8 Nov 2023 15:13:14 +0100 Subject: [PATCH] fix questions list on csrf --- lemarche/www/pages/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lemarche/www/pages/views.py b/lemarche/www/pages/views.py index b9ad96b6f..85c2b08c4 100644 --- a/lemarche/www/pages/views.py +++ b/lemarche/www/pages/views.py @@ -320,6 +320,10 @@ def csrf_failure(request, reason=""): # noqa C901 elif key_cleaned == "sectors": tender_dict[key_cleaned] = Sector.objects.filter(slug__in=value) + elif key_cleaned == "questions_list" and value: + tender_dict[key_cleaned] = json.loads(value[0]) + elif key_cleaned == "alpine-questions_list": + continue elif key_cleaned not in [ "response_kind", "is_country_area",