Verified Commit 497f81e5 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Typo in returned api payload

parent 244ebd7a
......@@ -43,7 +43,7 @@ class PlaylistViewSet(
serializer = serializers.PlaylistTrackSerializer(plts, many=True)
data = {
'count': len(plts),
'result': serializer.data
'results': serializer.data
}
return Response(data, status=200)
......
......@@ -152,4 +152,4 @@ def test_can_list_tracks_from_playlist(
serialized_plt = serializers.PlaylistTrackSerializer(plt).data
assert response.data['count'] == 1
assert response.data['result'][0] == serialized_plt
assert response.data['results'][0] == serialized_plt
Supports Markdown
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