From 07af51ce22b7c38c6d09231c061eac5ae7677bfa Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 30 Apr 2013 14:25:01 +0000 Subject: [PATCH] fix adding event annotation --- pandora/annotation/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/annotation/tasks.py b/pandora/annotation/tasks.py index 3d3088eb..9508927b 100644 --- a/pandora/annotation/tasks.py +++ b/pandora/annotation/tasks.py @@ -25,7 +25,7 @@ def update_matches(id, type): if p.annotations.exclude(id=id).count() == 0: p.delete() 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(): p.update_matches()