From cc4df218971daaa5414ab072d75bb8a435d5e901 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 24 Aug 2011 17:52:49 +0200 Subject: [PATCH] wanted --- pandora/item/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index a8d5b52..49860f2 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -737,6 +737,7 @@ class Item(models.Model): if len(folders) > 1: files = files.filter(folder=folders[0]) files.update(wanted=True) + self.files.exclude(id__in=files).update(wanted=False) def update_selected(self): files = archive.models.File.objects.filter(item=self,