From 0faef8567cd8f0a608d38e82915ead0d5df10c31 Mon Sep 17 00:00:00 2001 From: Luca Bellenghi Date: Thu, 31 Oct 2024 16:19:35 +0100 Subject: [PATCH] update fields --- .../contenttypes/restapi/serializers/unita_organizzativa.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/design/plone/contenttypes/restapi/serializers/unita_organizzativa.py b/src/design/plone/contenttypes/restapi/serializers/unita_organizzativa.py index 04b3e5cc..d176cc6d 100644 --- a/src/design/plone/contenttypes/restapi/serializers/unita_organizzativa.py +++ b/src/design/plone/contenttypes/restapi/serializers/unita_organizzativa.py @@ -140,6 +140,8 @@ def __call__(self, force_images=True, **kwargs): get_taxonomy_information("tipologia_organizzazione", self.context, data) + data['image_caption'] = getattr(self.context, "image_caption", None) + data['preview_caption'] = getattr(self.context, "preview_caption", None) return data def getGeolocation(self):