From 5ced5cf791c6bfd6bce33c09f402247319f9305b Mon Sep 17 00:00:00 2001 From: j Date: Tue, 30 Aug 2016 19:34:31 +0200 Subject: [PATCH] return url --- pandora/archive/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index ce561e1c1..7b3c97c0f 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -422,6 +422,8 @@ class File(models.Model): data[key] = self.info.get(key) data['users'] = list(set([i['user'] for i in data['instances']])) data['item'] = self.item.public_id + if 'url' in keys and 'url' in self.info: + data['url'] = self.info['url'] if keys: for k in list(data): if k not in keys: