From 20583b04c0c1a826aaddbf0342f4369a206dae2d Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sat, 25 Jun 2022 23:17:19 +0100 Subject: Allowed user to select/upload images when editing. When uploaded thumbnails and description pages are automatically created. Git commiting can now handle multiple files at once. --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/expo.py') diff --git a/core/views/expo.py b/core/views/expo.py index 00cb6dc..91919a5 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -359,7 +359,7 @@ def editexpopage(request, path): if result != html: # Check if content changed try: change_message = pageform.cleaned_data["change_message"] - version_control.write_and_commit(filepath, result, f'{change_message} - online edit of {path}') + version_control.write_and_commit([(filepath, result, "utf-8")], f'{change_message} - online edit of {path}') except version_control.WriteAndCommitError as e: return render(request,'errors/generic.html', {'message': e.message}) -- cgit v1.2.3