Generalize bulk_operations logic

LMS-11366
This commit is contained in:
Don Mitchell
2014-09-05 15:07:18 -04:00
parent ee71eba15b
commit 4faed64859
13 changed files with 297 additions and 210 deletions

View File

@@ -423,7 +423,7 @@ def course_index(request, course_key):
"""
# A depth of None implies the whole course. The course outline needs this in order to compute has_changes.
# A unit may not have a draft version, but one of its components could, and hence the unit itself has changes.
with modulestore().bulk_temp_noop_operations(course_key): # FIXME
with modulestore().bulk_operations(course_key):
course_module = _get_course_module(course_key, request.user, depth=None)
lms_link = get_lms_link_for_item(course_module.location)
sections = course_module.get_children()