Asset support in split

LMS-2876
This commit is contained in:
Don Mitchell
2014-06-26 17:00:09 -04:00
parent 1bc48af784
commit cc6dfbbc75
43 changed files with 1016 additions and 626 deletions

View File

@@ -65,7 +65,10 @@ def _clear_assets(location):
assets, __ = store.get_all_content_for_course(location.course_key)
for asset in assets:
asset_location = AssetLocation._from_deprecated_son(asset["_id"], location.course_key.run)
asset_location = AssetLocation._from_deprecated_son(
asset.get('content_son', asset["_id"]),
location.course_key.run
)
del_cached_content(asset_location)
store.delete(asset_location)