Rename acquire_lock to select_for_update, add docstring

This commit is contained in:
kimth
2012-08-15 10:13:35 -04:00
parent 75eee443ff
commit 42ea4f3271
2 changed files with 7 additions and 5 deletions

View File

@@ -302,7 +302,7 @@ def xqueue_callback(request, course_id, userid, id, dispatch):
user = User.objects.get(id=userid)
student_module_cache = StudentModuleCache.cache_for_descriptor_descendents(
user, modulestore().get_item(id), depth=0, acquire_lock=True)
user, modulestore().get_item(id), depth=0, select_for_update=True)
instance = get_module(user, request, id, student_module_cache)
instance_module = get_instance_module(user, instance, student_module_cache)