Set admin form fields on custom image model
This commit is contained in:
parent
f0239b40fc
commit
18a2f6892e
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue