forked from 0x2620/pandora
only loop over annotations without public_id once
This commit is contained in:
parent
9b1ed58ff2
commit
9e88f29126
1 changed files with 1 additions and 2 deletions
|
@ -20,8 +20,7 @@ class Migration(SchemaMigration):
|
|||
if item.models.Item.objects.all().count():
|
||||
for i in item.models.Item.objects.all():
|
||||
item.models.AnnotationSequence.reset(i)
|
||||
for a in item.models.Annotation.objects.filter(public_id=None): a.save()
|
||||
Annotation = orm['annotation.Annotation']
|
||||
Annotation = item.models.Annotation
|
||||
AnnotationSequence = item.models.AnnotationSequence
|
||||
for annotation in Annotation.objects.filter(public_id=None).order_by('item'):
|
||||
item = annotation.item
|
||||
|
|
Loading…
Reference in a new issue