From 042cd9f452572f2e72a889d0c0050e527b9613c1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 5 Jan 2024 17:31:25 +0000 Subject: [PATCH] Create image migration to modify image file field --- ...omimage_file_alter_customrendition_file.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 website/images/migrations/0002_alter_customimage_file_alter_customrendition_file.py diff --git a/website/images/migrations/0002_alter_customimage_file_alter_customrendition_file.py b/website/images/migrations/0002_alter_customimage_file_alter_customrendition_file.py new file mode 100644 index 0000000..c70565b --- /dev/null +++ b/website/images/migrations/0002_alter_customimage_file_alter_customrendition_file.py @@ -0,0 +1,33 @@ +# Generated by Django 5.0.1 on 2024-01-05 17:28 + +import wagtail.images.models +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("images", "0001_initial"), + ] + + operations = [ + migrations.AlterField( + model_name="customimage", + name="file", + field=wagtail.images.models.WagtailImageField( + height_field="height", + upload_to=wagtail.images.models.get_upload_to, + verbose_name="file", + width_field="width", + ), + ), + migrations.AlterField( + model_name="customrendition", + name="file", + field=wagtail.images.models.WagtailImageField( + height_field="height", + storage=wagtail.images.models.get_rendition_storage, + upload_to=wagtail.images.models.get_rendition_upload_to, + width_field="width", + ), + ), + ]