dont add empty set for users with only ignored files
This commit is contained in:
parent
927e4c9ef6
commit
9ceeb34171
1 changed files with 2 additions and 1 deletions
|
@ -920,7 +920,8 @@ class Item(models.Model):
|
||||||
sets = []
|
sets = []
|
||||||
for user in self.users_with_files():
|
for user in self.users_with_files():
|
||||||
files = self.files.filter(instances__volume__user=user, instances__ignore=False)
|
files = self.files.filter(instances__volume__user=user, instances__ignore=False)
|
||||||
sets.append(files)
|
if files.count():
|
||||||
|
sets.append(files)
|
||||||
return sets
|
return sets
|
||||||
|
|
||||||
def update_wanted(self):
|
def update_wanted(self):
|
||||||
|
|
Loading…
Reference in a new issue