Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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__'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #display #manytomany #field #django #rest #framework
ADD COMMENT
Topic
Name
1+3 =