From a4783d23328e37f9a931c8c2d3c994496cf72cb5 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 10 Jul 2024 22:18:39 +0200 Subject: [PATCH] fix for python 3.11 --- core/views/editor_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/editor_helpers.py b/core/views/editor_helpers.py index 9db71c2..252d92e 100644 --- a/core/views/editor_helpers.py +++ b/core/views/editor_helpers.py @@ -103,7 +103,7 @@ def new_image_form(request, path): form = NewWebImageForm(request.POST, request.FILES, directory=directory) if form.is_valid(): print(f"new_image_form(): form is valid ") - print(f"new_image_form(): files: {request.FILES["file_"]}") + print(f"new_image_form(): files: {request.FILES['file_']}") f = request.FILES["file_"] binary_data = io.BytesIO() for chunk in f.chunks():