dont add empty set for users with only ignored files

This commit is contained in:
j 2012-06-28 14:59:08 +02:00
parent 927e4c9ef6
commit 9ceeb34171

View file

@ -920,7 +920,8 @@ class Item(models.Model):
sets = []
for user in self.users_with_files():
files = self.files.filter(instances__volume__user=user, instances__ignore=False)
sets.append(files)
if files.count():
sets.append(files)
return sets
def update_wanted(self):