Add playlists
This adds
-
Playlist
andPlaylistEntry
models, -
create_playlist
,destroy_playlist
andupdate_playlist
custom permissions, -
PlaylistFilter
, that filters the playlists usingcontains_file_ids
orshow_ids
, -
APIPlaylistViewSet
, that injects the request context into the serializer and checks permissions while deleting a playlist, -
PlaylistSerializer
. A playlist that contains an entry withoutfile_id
oruri
or contains multiple entries with null duration is rejected. Additionally, theplaylist_id
ordefault_playlist_id
fields are now aPrimaryKeyRelatedField
to thePlaylist
. - Tests for (most) of the "happy path" API requests,