def get(self, request, user_id):
    queryset = Device.objects.filter(user_id=user_id).select_related('user')
    serializer_context = {'request': request}
    serializer = DeviceListSerializer(queryset, context=serializer_context, many=True)
    data = serializer.data
    if data:
        return Response(data)
    return Response({'message': f'No Device data found', 'data': []})
def get(self, request, user_id):
    queryset = Device.objects.filter(user_id=user_id).select_related('user')
    serializer_context = {'request': request}
    serializer = DeviceListSerializer(queryset, context=serializer_context, many=True)
    data = serializer.data
    if data:
        return Response(data)
    return Response({'message': f'No Device data found', 'data': []})