Commit f0063d97 by Don Mitchell

Delete orphans was trying to get non-existent 'draft' modulestore

parent 0a8b2649
......@@ -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