Commit 140c4823 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] Do not convert None to a string

parent 5a82a53c
......@@ -1272,7 +1272,8 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
if relative_url:
try:
traversed_document = site_root.restrictedTraverse(str(relative_url))
view = str(view)
if (view is not None):
view = str(view)
is_site_root = False
except:
raise NotImplementedError(relative_url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment