diff --git a/pandora/archive/models.py b/pandora/archive/models.py index f8d3fed37..22fd4088d 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -371,8 +371,7 @@ class File(models.Model): for key in self.PATH_INFO: data[key] = self.info.get(key) data['users'] = list(set([i['user'] for i in data['instances']])) - if 'item' in keys: - data['item'] = self.item.itemId + data['item'] = self.item.itemId if keys: for k in data.keys(): if k not in keys: