self.id
This commit is contained in:
parent
ea256ad4da
commit
fb738c25cf
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class Annotation(models.Model):
|
||||||
|
|
||||||
# remove undefined matches that only have this annotation
|
# remove undefined matches that only have this annotation
|
||||||
for p in a_matches.filter(defined=False).exclude(name=self.value):
|
for p in a_matches.filter(defined=False).exclude(name=self.value):
|
||||||
if p.annotations.exclude(id=id).count() == 0:
|
if p.annotations.exclude(id=self.id).count() == 0:
|
||||||
p.delete()
|
p.delete()
|
||||||
if layer.get('type') == type and a_matches.count() == 0:
|
if layer.get('type') == type and a_matches.count() == 0:
|
||||||
a_matches.add(Model.get_or_create(self.value))
|
a_matches.add(Model.get_or_create(self.value))
|
||||||
|
|
Loading…
Reference in a new issue