wanted
This commit is contained in:
parent
c7ff10ab0e
commit
09e9b5af0a
1 changed files with 1 additions and 0 deletions
|
@ -737,6 +737,7 @@ class Item(models.Model):
|
||||||
if len(folders) > 1:
|
if len(folders) > 1:
|
||||||
files = files.filter(folder=folders[0])
|
files = files.filter(folder=folders[0])
|
||||||
files.update(wanted=True)
|
files.update(wanted=True)
|
||||||
|
self.files.exclude(id__in=files).update(wanted=False)
|
||||||
|
|
||||||
def update_selected(self):
|
def update_selected(self):
|
||||||
files = archive.models.File.objects.filter(item=self,
|
files = archive.models.File.objects.filter(item=self,
|
||||||
|
|
Loading…
Reference in a new issue