fix username
This commit is contained in:
parent
ffb512a304
commit
d795e40344
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue