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():
|
if item.models.Item.objects.all().count():
|
||||||
for i in item.models.Item.objects.all():
|
for i in item.models.Item.objects.all():
|
||||||
item.models.AnnotationSequence.reset(i)
|
item.models.AnnotationSequence.reset(i)
|
||||||
for a in item.models.Annotation.objects.filter(public_id=None): a.save()
|
Annotation = item.models.Annotation
|
||||||
Annotation = orm['annotation.Annotation']
|
|
||||||
AnnotationSequence = item.models.AnnotationSequence
|
AnnotationSequence = item.models.AnnotationSequence
|
||||||
for annotation in Annotation.objects.filter(public_id=None).order_by('item'):
|
for annotation in Annotation.objects.filter(public_id=None).order_by('item'):
|
||||||
item = annotation.item
|
item = annotation.item
|
||||||
|
|
Loading…
Reference in a new issue