class PlaylistVideoSerializer(serializers.HyperlinkedModelSerializer):
    title = serializers.ReadOnlyField(video.title)
description = serializers.ReadOnlyField(video.description)
thumb = serializers.ReadOnlyField(video.thumb)
duration = serializers.ReadOnlyField(video.duration)


class Meta:
    model = PlaylistVideo
fields = 'title', 'description', 'thumb', 'duration'
How to work with ManytoManyField with through relation in django-rest-framework