Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:nationalarchives/ds-wagtail into…
Browse files Browse the repository at this point in the history
… feature/global-header-and-footer
  • Loading branch information
ahosgood committed Apr 2, 2024
2 parents 32ee2f6 + f7566d2 commit a0763c2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions etna/core/blocks/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ def get_api_representation(self, value, context=None):
"width": webp_image.width,
"height": webp_image.height,
},
"transcript": (
{
"heading": value.get_transcription_heading_display(),
"text": value.transcription,
}
if value.transcription
else None
),
"translation": (
{
"heading": value.get_translation_heading_display(),
"text": value.translation,
}
if value.translation
else None
),
}
return None

Expand Down

0 comments on commit a0763c2

Please sign in to comment.