Explicitly create the AssetKey for all assets coming out of a ContentStore

This commit is contained in:
Calen Pennington
2014-07-07 17:35:36 -04:00
parent 4e67c2a9b3
commit 1bc0b323b1
4 changed files with 27 additions and 46 deletions

View File

@@ -121,8 +121,7 @@ def _assets_json(request, course_key):
asset_json = []
for asset in assets:
asset_id = asset.get('content_son', asset['_id'])
asset_location = StaticContent.compute_location(course_key, asset_id['name'])
asset_location = asset['asset_key']
# note, due to the schema change we may not have a 'thumbnail_location' in the result set
thumbnail_location = asset.get('thumbnail_location', None)
if thumbnail_location: