diff --git a/api/addons/serializers.py b/api/addons/serializers.py index 9ac7ac2bc12b..28ef16e8aa12 100644 --- a/api/addons/serializers.py +++ b/api/addons/serializers.py @@ -32,8 +32,8 @@ def get_absolute_url(self, obj): kwargs=self.context['request'].parser_context['kwargs'], query_kwargs={ 'path': obj['path'], - 'id': obj['id'], - }, + 'id': obj['id'] + } ) def get_root_folder(self, obj): diff --git a/api_tests/nodes/views/test_node_addons.py b/api_tests/nodes/views/test_node_addons.py index d038d0907d64..cebd3f322e77 100644 --- a/api_tests/nodes/views/test_node_addons.py +++ b/api_tests/nodes/views/test_node_addons.py @@ -805,7 +805,7 @@ def test_folder_list_GET_expected_behavior(self, mock_libraries): 'fileEditing': 'members', 'libraryEditing': 'members', 'type': 'Private', - 'id': '18497322', + 'id': 18497322, 'name': 'Group Library I' }, 'version': 1,