From f11772b8dbfb5990c62a993b35ffc33d29e6a1ff Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 20 May 2015 01:04:42 +0530 Subject: [PATCH] fix annotations without public_id after initializing sequence --- pandora/item/migrations/0006_add_annotation_sequence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/migrations/0006_add_annotation_sequence.py b/pandora/item/migrations/0006_add_annotation_sequence.py index 72a054ea..cc2c0327 100644 --- a/pandora/item/migrations/0006_add_annotation_sequence.py +++ b/pandora/item/migrations/0006_add_annotation_sequence.py @@ -16,9 +16,9 @@ class Migration(SchemaMigration): )) db.send_create_signal('item', ['AnnotationSequence']) import item.models - for a in item.models.Annotation.objects.filter(public_id=None): a.save() 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() def backwards(self, orm): # Deleting model 'AnnotationSequence'