This commit is contained in:
j 2012-02-01 23:05:28 +00:00
parent b065e804dd
commit 916bd3d393

View file

@ -14,7 +14,7 @@ def update_matching_events(id):
e.delete() e.delete()
if annotation.get_layer().get('type') == 'event' \ if annotation.get_layer().get('type') == 'event' \
and annotation.events.count() == 0: and annotation.events.count() == 0:
annotations.events.add(Event.get_or_create(annotation.value)) annotation.events.add(Event.get_or_create(annotation.value))
for e in annotation.events.all(): for e in annotation.events.all():
e.update_matches() e.update_matches()
ids = [e['id'] for e in Event.objects.all().values('id')] ids = [e['id'] for e in Event.objects.all().values('id')]