diff --git a/pandora/item/models.py b/pandora/item/models.py index 4e49b550b..b45c2bff8 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -410,7 +410,7 @@ class Item(models.Model): ''' for l in self.lists.all(): l.remove(self) - if l.items.filter(id=other.id) == 0: + if l.items.filter(id=other.id).count() == 0: l.add(other) #FIXME: should this really happen for annotations? for a in self.annotations.all():