diff --git a/guillotina/contrib/workflows/api.py b/guillotina/contrib/workflows/api.py index 274e4fdd8..c12e31da5 100644 --- a/guillotina/contrib/workflows/api.py +++ b/guillotina/contrib/workflows/api.py @@ -35,7 +35,7 @@ async def __call__(self): { "@id": obj_url + "/@workflow/" + action_name, "title": action["title"], - "translated_title": action.get("translated_title", {}), + "metadata": action.get("metadata", {}), } ) diff --git a/guillotina/tests/workflows/test_workflow_basic.py b/guillotina/tests/workflows/test_workflow_basic.py index 1cafeacc6..8252e1598 100644 --- a/guillotina/tests/workflows/test_workflow_basic.py +++ b/guillotina/tests/workflows/test_workflow_basic.py @@ -14,7 +14,7 @@ async def test_workflow_basic(container_requester): async with container_requester as requester: response, _ = await requester("GET", "/db/guillotina/@workflow") assert response["transitions"][0]["title"] == "Publish" - assert response["transitions"][0]["translated_title"] == {} + assert response["transitions"][0]["metadata"] == {} response, _ = await requester("GET", "/db/guillotina") assert response["review_state"] == "private" @@ -33,9 +33,7 @@ async def test_workflow_basic(container_requester): assert response["review_state"] == "public" response, _ = await requester("GET", "/db/guillotina/@sharing") - assert ( - response["local"]["roleperm"]["guillotina.Anonymous"]["guillotina.AccessContent"] == "AllowSingle" - ) + assert response["local"]["roleperm"]["guillotina.Anonymous"]["guillotina.AccessContent"] == "AllowSingle" response, status = await requester("GET", "/db/guillotina", token=None) assert status == 200