return url

This commit is contained in:
j 2016-08-30 19:34:31 +02:00
parent 89311c14b4
commit 5ced5cf791

View file

@ -422,6 +422,8 @@ class File(models.Model):
data[key] = self.info.get(key) data[key] = self.info.get(key)
data['users'] = list(set([i['user'] for i in data['instances']])) data['users'] = list(set([i['user'] for i in data['instances']]))
data['item'] = self.item.public_id data['item'] = self.item.public_id
if 'url' in keys and 'url' in self.info:
data['url'] = self.info['url']
if keys: if keys:
for k in list(data): for k in list(data):
if k not in keys: if k not in keys: