From 5a857ae74b60d0ed3f9e4087305da995a08423a6 Mon Sep 17 00:00:00 2001 From: madjid-asa Date: Wed, 8 Nov 2023 16:27:59 +0100 Subject: [PATCH] fix questions list on csrf (#971) --- 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",