fix keys=None
This commit is contained in:
parent
ba71665bc5
commit
194b286e30
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ class File(models.Model):
|
|||
'wanted': self.wanted,
|
||||
}
|
||||
for key in ('folder', 'filename'):
|
||||
if key in keys:
|
||||
if keys and key in keys:
|
||||
data[key] = getattr(self, key)
|
||||
if error:
|
||||
data['error'] = error
|
||||
|
|
Loading…
Add table
Reference in a new issue