From 18a2f6892e5508af4172c18f282444b62f571877 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 28 Jun 2022 21:43:58 +0100 Subject: [PATCH] Set admin form fields on custom image model --- website/images/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/images/models.py b/website/images/models.py index 6043df1..6c04468 100644 --- a/website/images/models.py +++ b/website/images/models.py @@ -1,9 +1,9 @@ from django.db import models -from wagtail.images.models import AbstractImage, AbstractRendition +from wagtail.images.models import AbstractImage, AbstractRendition, Image class CustomImage(AbstractImage): - pass + admin_form_fields = Image.admin_form_fields class CustomRendition(AbstractRendition):