summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-25 23:17:19 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-25 23:17:19 +0100
commit20583b04c0c1a826aaddbf0342f4369a206dae2d (patch)
treea1ef507b3f8827e70d0233cbb17191ec4f463e40 /core/views/expo.py
parentb3d9e814997ab8f83e8e441ed48625c66ed68d51 (diff)
downloadtroggle-20583b04c0c1a826aaddbf0342f4369a206dae2d.tar.gz
troggle-20583b04c0c1a826aaddbf0342f4369a206dae2d.tar.bz2
troggle-20583b04c0c1a826aaddbf0342f4369a206dae2d.zip
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.
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
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})