Skip to content
Snippets Groups Projects
Verified Commit 497f81e5 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Typo in returned api payload

parent 244ebd7a
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ class PlaylistViewSet( ...@@ -43,7 +43,7 @@ class PlaylistViewSet(
serializer = serializers.PlaylistTrackSerializer(plts, many=True) serializer = serializers.PlaylistTrackSerializer(plts, many=True)
data = { data = {
'count': len(plts), 'count': len(plts),
'result': serializer.data 'results': serializer.data
} }
return Response(data, status=200) return Response(data, status=200)
......
...@@ -152,4 +152,4 @@ def test_can_list_tracks_from_playlist( ...@@ -152,4 +152,4 @@ def test_can_list_tracks_from_playlist(
serialized_plt = serializers.PlaylistTrackSerializer(plt).data serialized_plt = serializers.PlaylistTrackSerializer(plt).data
assert response.data['count'] == 1 assert response.data['count'] == 1
assert response.data['result'][0] == serialized_plt assert response.data['results'][0] == serialized_plt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment