forked from 0x2620/pandora
only update if clip is set
This commit is contained in:
parent
2c6f302cfb
commit
3fb3c6ef38
1 changed files with 6 additions and 5 deletions
|
@ -45,7 +45,7 @@ class Annotation(models.Model):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def html(self):
|
def html(self):
|
||||||
if self.layer.type == 'string':
|
if self.layer == 'string':
|
||||||
return utils.html_parser(self.value)
|
return utils.html_parser(self.value)
|
||||||
else:
|
else:
|
||||||
return self.value
|
return self.value
|
||||||
|
@ -83,6 +83,7 @@ class Annotation(models.Model):
|
||||||
if set_public_id:
|
if set_public_id:
|
||||||
self.set_public_id()
|
self.set_public_id()
|
||||||
|
|
||||||
|
if self.clip:
|
||||||
Clip.objects.filter(**{
|
Clip.objects.filter(**{
|
||||||
'id': self.clip.id,
|
'id': self.clip.id,
|
||||||
self.layer: False
|
self.layer: False
|
||||||
|
|
Loading…
Reference in a new issue