diff --git a/chrono/api/views.py b/chrono/api/views.py index 1535f78e..d4d00512 100644 --- a/chrono/api/views.py +++ b/chrono/api/views.py @@ -2916,6 +2916,7 @@ class SharedCustodyAgendas(APIView): response = { 'id': agenda.pk, 'settings_url': request.build_absolute_uri(agenda.get_settings_url()), + 'backoffice_url': request.build_absolute_uri(agenda.get_absolute_url()), } return Response({'err': 0, 'data': response}) diff --git a/tests/api/test_shared_custody.py b/tests/api/test_shared_custody.py index 2a4e3da8..63eb17e1 100644 --- a/tests/api/test_shared_custody.py +++ b/tests/api/test_shared_custody.py @@ -48,6 +48,7 @@ def test_add_shared_custody_agenda(app, user, settings): assert resp.json['data'] == { 'id': agenda.pk, 'settings_url': 'http://testserver/manage/shared-custody/%s/settings/' % agenda.pk, + 'backoffice_url': 'http://testserver/manage/shared-custody/%s/' % agenda.pk, } params = {