forked from 0x2620/pandora
merge annotations
This commit is contained in:
parent
f82a18587f
commit
a295981c77
1 changed files with 4 additions and 5 deletions
|
@ -332,11 +332,10 @@ class Item(models.Model):
|
||||||
l.items.remove(self)
|
l.items.remove(self)
|
||||||
if l.items.filter(id=other.id) == 0:
|
if l.items.filter(id=other.id) == 0:
|
||||||
l.items.add(other)
|
l.items.add(other)
|
||||||
#FIXME: should this really happen for layers?
|
#FIXME: should this really happen for annotations?
|
||||||
for l in self.layer.all():
|
for a in self.annotations.all():
|
||||||
l.items.remove(self)
|
a.item = other
|
||||||
if l.items.filter(id=other.id) == 0:
|
|
||||||
l.items.add(other)
|
|
||||||
if hasattr(self, 'files'):
|
if hasattr(self, 'files'):
|
||||||
for f in self.files.all():
|
for f in self.files.all():
|
||||||
f.item = other
|
f.item = other
|
||||||
|
|
Loading…
Reference in a new issue