get_a_room/accounts/views.py
def members(self, request, pk=None):
        """
        Returns a list of the members of the group
        """
        group = self.get_object()
        members = group.user_set.all()
        serializer = SimpleUserSerializer(
            members,
            many=True,
            context={'request': request}
        )
        return Response(serializer.data)

        Returns a list of the members of the group
        
Returns a list of the members of the group
Returns a list of the members of the group
def members(self, request, pk=None):
        group = self.get_object()
        members = group.user_set.all()
        serializer = SimpleUserSerializer(
            members,
            many=True,
            context={'request': request}
        )
        return Response(serializer.data)
def members ( self , request , pk = None ) : group = self . get_object ( ) members = group . user_set . all ( ) serializer = SimpleUserSerializer ( members , many = True , context = { 'request' : request } ) return Response ( serializer . data )
Returns a list of the members of the group
Returns a list of the members of the group
"""
        Returns a list of the members of the group
        """
self
request
pk