fixed histogram bug under staff view

This commit is contained in:
Rocky Duan
2012-08-01 12:42:57 -04:00
parent f637ca5120
commit 75c478771e

View File

@@ -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:
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,
# and this isn't a guest user, create it.