From 87d80835c056776e0836e4ccba3aefbbb066500d Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 29 Jun 2012 12:02:41 -0400 Subject: [PATCH] Initialize StudentModule with the max_score --- lms/djangoapps/courseware/module_render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/module_render.py b/lms/djangoapps/courseware/module_render.py index ee2ccee018..6cf4e43cc5 100644 --- a/lms/djangoapps/courseware/module_render.py +++ b/lms/djangoapps/courseware/module_render.py @@ -248,7 +248,8 @@ def get_module(user, request, location, student_module_cache, position=None): student=user, module_type=descriptor.type, module_state_key=module.id, - state=module.get_instance_state()) + state=module.get_instance_state(), + max_grade=module.max_score()) instance_module.save() # Add to cache. The caller and the system context have references # to it, so the change persists past the return