update clip layer flag

This commit is contained in:
j 2011-11-02 14:26:38 +01:00
parent 40beeacf3f
commit 79e76ca0b0

View file

@ -126,6 +126,12 @@ class Annotation(models.Model):
super(Annotation, self).save(*args, **kwargs) super(Annotation, self).save(*args, **kwargs)
if set_public_id: if set_public_id:
self.set_public_id() self.set_public_id()
Clip.objects.filter(**{
'id': self.clip.id,
self.layer.name: False
}).update(**{self.layer.name: True})
#how expensive is this? #how expensive is this?
#update_matching_events.delay(self.value) #update_matching_events.delay(self.value)
#update_matching_places.delay(self.value) #update_matching_places.delay(self.value)