fix import

This commit is contained in:
j 2015-02-26 06:07:18 +00:00
parent deda6252f1
commit 1ed91da4e0
1 changed files with 1 additions and 0 deletions

View File

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