Populate image storage objects with locations everywhere.

This commit is contained in:
Jake Moshenko 2014-06-27 20:04:26 -04:00
parent e68d6a7302
commit 684c26bc1a
4 changed files with 40 additions and 49 deletions

View file

@ -23,7 +23,7 @@ def image_view(image):
'ancestors': image.ancestors,
'dbid': image.id,
'size': extended_props.image_size,
'locations': [l.location.name for l in image.storage.locations]
'locations': list(image.storage.locations),
}