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():