fix username

This commit is contained in:
j 2020-08-29 23:37:59 +02:00
parent ffb512a304
commit d795e40344

View file

@ -492,7 +492,7 @@ class File(models.Model):
data['instances'].append({
'ignore': False,
'path': self.info['filename'],
'user': f.item.user.username,
'user': self.item.user.username if self.item and self.item.user else 'system',
'volume': 'Direct Upload'
})
return data