2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 22:27:08 +00:00

remaining shared-use machine cookie tyimeouts set

This commit is contained in:
2025-06-25 23:39:41 +03:00
parent c29548db01
commit c89e8cea90
6 changed files with 10 additions and 11 deletions

View File

@@ -410,7 +410,7 @@ def new_image_form(request, path):
)
save_original_in_expofiles(f, year, form.cleaned_data["photographer"], host, image_rel_path, referer)
j_response = JsonResponse({"html": html_snippet})
j_response.set_cookie('editor_id', editor, max_age=get_cookie_max_age()) # does NOT work updating who_are_you cookie - because it is JsonResponse not HttpResponse.
j_response.set_cookie('editor_id', editor, max_age=get_cookie_max_age(request)) # does NOT work updating who_are_you cookie - because it is JsonResponse not HttpResponse.
return j_response
else:
# print(f"new_image_form(): not POST ")