direct uploads are also valid sets

This commit is contained in:
j 2013-07-02 23:18:14 +00:00
parent f7b4630a97
commit bd4a76e211

View file

@ -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):