How to get selected attributes as a serialized representation in DRF?

When I serialize data using this statement:

serializer = serializers.MySerializer(members, many=True)
return Response(

It will return a list of serialized data as a response. But if I want to print only some attributes as a serialized representation,not all attributes, how to do that?

Back to Top