From b12a6d191fdb83bedd2b293e57cd8f1a92e1531b Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 16 Feb 2023 16:13:15 +0100 Subject: [PATCH] Add UID to the metadata for summaries, for example related items. Fixes https://github.com/plone/plone.restapi/issues/1585 --- news/1585.feature | 2 ++ src/plone/restapi/serializer/summary.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 news/1585.feature diff --git a/news/1585.feature b/news/1585.feature new file mode 100644 index 0000000000..c76f0c559a --- /dev/null +++ b/news/1585.feature @@ -0,0 +1,2 @@ +Add `UID` to the metadata for summaries, for example related items. +[maurits] diff --git a/src/plone/restapi/serializer/summary.py b/src/plone/restapi/serializer/summary.py index 64768ecfda..398d1e4c3a 100644 --- a/src/plone/restapi/serializer/summary.py +++ b/src/plone/restapi/serializer/summary.py @@ -21,6 +21,7 @@ def default_metadata_fields(self): "description", "review_state", "title", + "UID", } def field_accessors(self):