Create image migration to modify image file field

This commit is contained in:
Jake Howard 2024-01-05 17:31:25 +00:00
parent 8e0f948f66
commit 042cd9f452
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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",
),
),
]