only update annotations if public_id really changed

This commit is contained in:
j 2012-09-25 12:24:01 +02:00
parent 4ccebb882d
commit 80a242ee49

View file

@ -366,7 +366,9 @@ class Item(models.Model):
for c in self.clips.all(): c.save()
for a in self.annotations.all():
public_id = a.public_id.split('/')[1]
a.public_id = "%s/%s" % (self.itemId, public_id)
public_id = "%s/%s" % (self.itemId, public_id)
if public_id != a.public_id:
a.public_id = public_id
a.save()
tasks.update_file_paths.delay(self.itemId)
if update_poster: