Skip to content

Commit

Permalink
Add UID to UOJSONSummarySerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Jan 10, 2024
1 parent ad80beb commit 835a7f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
5.4.2 (unreleased)
------------------

- Nothing changed yet.
- Fix deserializer for relationfield, add lstrip to path object calculation
[eikichi18]


5.4.1 (2023-12-28)
Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/volto/restapi/deserializer/relationfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __call__(self, value):
portal_url = portal.absolute_url()
if value.startswith(portal_url):
# Resolve by URL
obj = portal.restrictedTraverse(urlparse(value).path, None)
obj = portal.restrictedTraverse(urlparse(value).path.lstrip("/"), None)
resolved_by = "URL"
elif value.startswith("/"):
# Resolve by path
Expand Down

0 comments on commit 835a7f4

Please sign in to comment.