annotation ids

This commit is contained in:
j 2011-10-29 16:12:28 +02:00
commit fd39f122ad
2 changed files with 7 additions and 4 deletions

View file

@ -340,6 +340,8 @@ class Item(models.Model):
#FIXME: should this really happen for annotations?
for a in self.annotations.all():
a.item = other
a.public_id = None
a.save()
if hasattr(self, 'files'):
for f in self.files.all():