From 1ed91da4e0f8b50f1a6506d5714c6f456ac55c28 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 26 Feb 2015 06:07:18 +0000 Subject: [PATCH] fix import --- pandora/entity/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/entity/models.py b/pandora/entity/models.py index 168c6e611..383b37d5a 100644 --- a/pandora/entity/models.py +++ b/pandora/entity/models.py @@ -184,6 +184,7 @@ class Entity(models.Model): self.matches = matches def update_annotations(self): + import annotation.models entity_layers = [l['id'] for l in settings.CONFIG['layers'] if l['type'] == 'entity'] if entity_layers: with transaction.commit_on_success():