Commit 102d4906 by ichuang

fix problem with add_histogram (expects module as second argument)

parent ec78e1a1
...@@ -184,7 +184,7 @@ def get_module(user, request, location, student_module_cache, position=None): ...@@ -184,7 +184,7 @@ def get_module(user, request, location, student_module_cache, position=None):
) )
if settings.MITX_FEATURES.get('DISPLAY_HISTOGRAMS_TO_STAFF') and user.is_staff: if settings.MITX_FEATURES.get('DISPLAY_HISTOGRAMS_TO_STAFF') and user.is_staff:
module.get_html = add_histogram(module.get_html) module.get_html = add_histogram(module.get_html, module)
# If StudentModule for this instance wasn't already in the database, # If StudentModule for this instance wasn't already in the database,
# and this isn't a guest user, create it. # and this isn't a guest user, create it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment