Commit 77b8cbba by Don Mitchell

Merge pull request #3932 from edx/dhm/bug_orphans

Delete orphans was trying to get non-existent 'draft' modulestore
parents c389746a f0063d97
......@@ -526,7 +526,7 @@ def orphan_handler(request, course_key_string):
for itemloc in items:
# get_orphans returns the deprecated string format
usage_key = course_usage_key.make_usage_key_from_deprecated_string(itemloc)
modulestore('draft').delete_item(usage_key, delete_all_versions=True)
modulestore().delete_item(usage_key, delete_all_versions=True)
return JsonResponse({'deleted': items})
else:
raise PermissionDenied()
......
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