Verified Commit 5654aaa2 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed invalid mimeType property

parent 1e583cd5
......@@ -1583,12 +1583,12 @@ class ChannelUploadSerializer(serializers.Serializer):
"url": [
{
"type": "Link",
"mimeType": upload.mimetype,
"mediaType": upload.mimetype,
"href": utils.full_url(upload.listen_url_no_download),
},
{
"type": "Link",
"mimeType": "text/html",
"mediaType": "text/html",
"href": utils.full_url(upload.track.get_absolute_url()),
},
],
......
......@@ -1470,12 +1470,12 @@ def test_channel_upload_serializer(factories):
"url": [
{
"type": "Link",
"mimeType": upload.mimetype,
"mediaType": upload.mimetype,
"href": utils.full_url(upload.listen_url_no_download),
},
{
"type": "Link",
"mimeType": "text/html",
"mediaType": "text/html",
"href": utils.full_url(upload.track.get_absolute_url()),
},
],
......
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