From 5d071db55be1bc4358e938973588ca0e00921519 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Fri, 24 Apr 2020 20:04:29 +0500 Subject: [PATCH 1/2] Fixed unicode-objects must be encoded before hashing mako template error --- cms/templates/widgets/source-edit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/templates/widgets/source-edit.html b/cms/templates/widgets/source-edit.html index ac58fe9ceb..c46d8de98b 100644 --- a/cms/templates/widgets/source-edit.html +++ b/cms/templates/widgets/source-edit.html @@ -1,7 +1,7 @@ <% import hashlib from six import text_type - hlskey = hashlib.md5(text_type(module.location)).hexdigest() + hlskey = hashlib.md5(text_type(module.location).encode('utf-8')).hexdigest() %>