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({
|
data['instances'].append({
|
||||||
'ignore': False,
|
'ignore': False,
|
||||||
'path': self.info['filename'],
|
'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'
|
'volume': 'Direct Upload'
|
||||||
})
|
})
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in a new issue