Set admin form fields on custom image model

This commit is contained in:
Jake Howard 2022-06-28 21:43:58 +01:00
parent f0239b40fc
commit 18a2f6892e
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,9 +1,9 @@
from django.db import models from django.db import models
from wagtail.images.models import AbstractImage, AbstractRendition from wagtail.images.models import AbstractImage, AbstractRendition, Image
class CustomImage(AbstractImage): class CustomImage(AbstractImage):
pass admin_form_fields = Image.admin_form_fields
class CustomRendition(AbstractRendition): class CustomRendition(AbstractRendition):