Small bug fix causing crash when generating problem histogram.
This commit is contained in:
@@ -143,6 +143,7 @@ def render_x_module(user, request, xml_module, module_object_preload):
|
||||
|
||||
# special extra information about each problem, only for users who are staff
|
||||
if user.is_staff:
|
||||
module_id = xml_module.get('id')
|
||||
histogram = grade_histogram(module_id)
|
||||
render_histogram = len(histogram) > 0
|
||||
content=content+render_to_string("staff_problem_info.html", {'xml':etree.tostring(xml_module),
|
||||
|
||||
Reference in New Issue
Block a user