keep annotations while moving all files

This commit is contained in:
j 2019-06-27 19:35:07 +02:00
commit b5cecee034
2 changed files with 17 additions and 1 deletions

View file

@ -478,6 +478,7 @@ class Item(models.Model):
a.item = other
a.set_public_id()
Annotation.objects.filter(id=a.id).update(item=other, public_id=a.public_id)
self.clips.all().update(item=other, sort=other.sort)
if hasattr(self, 'files'):
for f in self.files.all():