From d19bcadf38047569886905a81c613dd5ce6f1b37 Mon Sep 17 00:00:00 2001 From: Jay Varner Date: Fri, 2 Feb 2024 08:13:31 -0500 Subject: [PATCH] Fix migration --- readux_ingest_ecds/migrations/0002_auto_20240201_1406.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/readux_ingest_ecds/migrations/0002_auto_20240201_1406.py b/readux_ingest_ecds/migrations/0002_auto_20240201_1406.py index 7ed71a2..bd36d33 100644 --- a/readux_ingest_ecds/migrations/0002_auto_20240201_1406.py +++ b/readux_ingest_ecds/migrations/0002_auto_20240201_1406.py @@ -7,6 +7,10 @@ import readux_ingest_ecds.models import uuid +Manifest = settings.IIIF_MANIFEST_MODEL +ImageServer = settings.IIIF_IMAGE_SERVER_MODEL +Collection = settings.IIIF_COLLECTION_MODEL + class Migration(migrations.Migration): dependencies = [ @@ -30,9 +34,9 @@ class Migration(migrations.Migration): name='Bulk', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('collections', models.ManyToManyField(blank=True, help_text='Optional: Collections to attach to the volume ingested in this form.', related_name='ecds_bulk_ingest_collections', to='iiif.Collection')), + ('collections', models.ManyToManyField(blank=True, help_text='Optional: Collections to attach to the volume ingested in this form.', related_name='ecds_bulk_ingest_collections', to=Collection)), ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='ecds_bulk_ingest_created_locals', to=settings.AUTH_USER_MODEL)), - ('image_server', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_bulk_ingest_image_server', to='iiif.imageserver')), + ('image_server', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='ecds_bulk_ingest_image_server', to=ImageServer)), ('volume_files', models.ManyToManyField(blank=True, to='readux_ingest_ecds.VolumeFile')), ], options={