how to display a manytomany field in django rest framework

186

how to display a manytomany field in django rest framework -

class ProjectSerializer(serializers.ModelSerializer):

    tag= serializers.StringRelatedField(many=True)

    class Meta:
       model = Song
       fields = '__all__'

Comments

Submit
0 Comments