From bb9f720fa67b488aba9e77cbe0c5e404bfad5365 Mon Sep 17 00:00:00 2001 From: Abdallah Date: Wed, 2 Apr 2014 16:18:56 +0300 Subject: [PATCH] unicode fixes --- cms/templates/widgets/metadata-edit.html | 3 +-- common/djangoapps/student/models.py | 4 ++-- common/djangoapps/xmodule_modifiers.py | 4 ++-- lms/templates/main.html | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cms/templates/widgets/metadata-edit.html b/cms/templates/widgets/metadata-edit.html index ac904262c3..d5aa23b4b0 100644 --- a/cms/templates/widgets/metadata-edit.html +++ b/cms/templates/widgets/metadata-edit.html @@ -5,8 +5,7 @@ import hashlib import copy import json - hlskey = hashlib.md5(module.location.url()).hexdigest() -%> + hlskey = hashlib.md5(module.location.url().encode('utf-8')).hexdigest()%> ## js templates