Skip to content

Commit

Permalink
Change hero_image serializer to DetailedImageSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Jul 24, 2024
1 parent bb266ef commit ae3909a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etna/core/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from wagtail.fields import RichTextField
from wagtail.images import get_image_model_string

from etna.core.serializers import ImageSerializer, RichTextSerializer
from etna.core.serializers import DetailedImageSerializer, RichTextSerializer

from .forms import RequiredHeroImagePageForm

Expand Down Expand Up @@ -162,11 +162,11 @@ class Meta:
APIField("hero_image_caption", serializer=RichTextSerializer()),
APIField(
"hero_image",
serializer=ImageSerializer("fill-1200x480"),
serializer=DetailedImageSerializer("fill-1200x480"),
),
APIField(
"hero_image_small",
serializer=ImageSerializer("fill-600x400", source="hero_image"),
serializer=DetailedImageSerializer("fill-600x400", source="hero_image"),
),
]

Expand Down

0 comments on commit ae3909a

Please sign in to comment.