direct uploads are also valid sets
This commit is contained in:
parent
f7b4630a97
commit
bd4a76e211
1 changed files with 4 additions and 0 deletions
|
@ -997,6 +997,10 @@ class Item(models.Model):
|
|||
files = self.files.filter(instances__volume__user=user, instances__ignore=False)
|
||||
if files.count():
|
||||
sets.append(files)
|
||||
if not sets:
|
||||
files = self.files.filter(instances=None, available=True)
|
||||
if files.count():
|
||||
sets.append(files)
|
||||
return sets
|
||||
|
||||
def update_wanted(self):
|
||||
|
|
Loading…
Reference in a new issue