fix keeping items in list if id changes and it is merged with another item, fixes #1011
This commit is contained in:
parent
38954ef8bf
commit
fa753f240c
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue