fix adding event annotation
This commit is contained in:
parent
ee9ec46602
commit
07af51ce22
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ def update_matches(id, type):
|
||||||
if p.annotations.exclude(id=id).count() == 0:
|
if p.annotations.exclude(id=id).count() == 0:
|
||||||
p.delete()
|
p.delete()
|
||||||
if a.get_layer().get('type') == type and a_matches.count() == 0:
|
if a.get_layer().get('type') == type and a_matches.count() == 0:
|
||||||
a.places.add(Model.get_or_create(a.value))
|
a_matches.add(Model.get_or_create(a.value))
|
||||||
for p in a_matches.all():
|
for p in a_matches.all():
|
||||||
p.update_matches()
|
p.update_matches()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue