From 13cab34a7d8c384bc92fda9101a90d36ed260f2e Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 17 Dec 2012 13:20:33 -0500 Subject: [PATCH] Always use the url form of the location when making StudentModules --- lms/djangoapps/courseware/module_render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/module_render.py b/lms/djangoapps/courseware/module_render.py index be207730b3..c9e46c7ce0 100644 --- a/lms/djangoapps/courseware/module_render.py +++ b/lms/djangoapps/courseware/module_render.py @@ -186,7 +186,7 @@ class LmsKeyValueStore(KeyValueStore): course_id=self._course_id, student=self._user, module_type=key.module_scope_id.category, - module_state_key=key.module_scope_id, + module_state_key=key.module_scope_id.url(), state=json.dumps({}) ) self._student_module_cache.append(student_module)