Skip to content

Commit

Permalink
fix questions list on csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Nov 8, 2023
1 parent f3466c6 commit a533083
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lemarche/www/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a533083

Please sign in to comment.