fix annotations without public_id after initializing sequence
This commit is contained in:
parent
ef56f4aec4
commit
f11772b8db
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue