Skip to content

Commit

Permalink
Add fields end and recurrence to event summary serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Nov 26, 2024
1 parent 88fc379 commit 8640965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
6.2.24 (unreleased)
-------------------

- Nothing changed yet.
- Add fields end and recurrence on event summary serializer
[eikichi18]


6.2.23 (2024-11-22)
Expand Down
2 changes: 2 additions & 0 deletions src/design/plone/contenttypes/restapi/serializers/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def __call__(self, force_all_metadata=False, force_images=False):

if self.context.portal_type == "Event":
res["start"] = json_compatible(self.context.start)
res["end"] = json_compatible(self.context.end)
res["recurrence"] = json_compatible(self.context.recurrence)

if "geolocation" in metadata_fields or self.show_all_metadata_fields:
# backward compatibility for some block templates
Expand Down

0 comments on commit 8640965

Please sign in to comment.