class PlaylistSerializer(serializers.ModelSerializer):
    videos = PlaylistVideoSerializer(source='playlistvideo_set', many=True)


class Meta:
    model = Playlist
fields = 'key', 'title', 'pub_dates', 'videos'
Как работать с ManytoManyField со сквозным отношением в django-rest-framework