forked from 0x2620/pandora
delete annotation that is not on a clip layer
This commit is contained in:
parent
24caf0e0c5
commit
04a5628268
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class Annotation(models.Model):
|
||||||
|
|
||||||
def delete(self, *args, **kwargs):
|
def delete(self, *args, **kwargs):
|
||||||
super(Annotation, self).delete(*args, **kwargs)
|
super(Annotation, self).delete(*args, **kwargs)
|
||||||
if self.clip.annotations.count() == 0:
|
if self.clip and self.clip.annotations.count() == 0:
|
||||||
self.clip.delete()
|
self.clip.delete()
|
||||||
self.item.update_find()
|
self.item.update_find()
|
||||||
self.item.update_sort()
|
self.item.update_sort()
|
||||||
|
|
Loading…
Reference in a new issue