original_docstring: 
          Function that allows to perform a PUT to an endpoint without telling the pk value to the API.
  
          :param request: the request done to the API, needed to check the auth.
          :param model: the database model that is going to be searched.
          :param queryset: the queryset object that performs the query and gives back the data again.
          :param model_serializer: the serializer to serialize the json result file.
          :param key: the column name for the primary key.
          :param date_fields: list with the names of the fields that are dates that come from the frontend.
          :return: a response to the request with the results.
          
docstring: Function that allows to perform a PUT to an endpoint without telling the pk value to the API.
docstring_tokens: Function that allows to perform a PUT to an endpoint without telling the pk value to the API .
code: def put_list(self, request, model, queryset, model_serializer,  key: str = 'id', date_fields: List[str] = None):
          """
          Function that allows to perform a PUT to an endpoint without telling the pk value to the API.
  
          :param request: the request done to the API, needed to check the auth.
          :param model: the database model that is going to be searched.
          :param queryset: the queryset object that performs the query and gives back the data again.
          :param model_serializer: the serializer to serialize the json result file.
          :param key: the column name for the primary key.
          :param date_fields: list with the names of the fields that are dates that come from the frontend.
          :return: a response to the request with the results.
          """
          data = JSONParser().parse(request)
  
          try:
              instance = getattr(model.objects, 'get')([key, data[key]])
          except model.DoesNotExist:
              return Response({'message': 'No available data'}, status=status.HTTP_204_NO_CONTENT)
  
          serializer = model_serializer(instance, data)
  
          if serializer.is_valid():
              serializer.update(instance, serializer.validated_data)
              return Response(serializer.data, status=status.HTTP_200_OK)
          else:
              return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
code_tokens: def put_list ( self , request , model , queryset , model_serializer , key : str = 'id' , date_fields : List [ str ] = None ) : data = JSONParser ( ) . parse ( request ) try : instance = getattr ( model . objects , 'get' ) ( [ key , data [ key ] ] ) except model . DoesNotExist : return Response ( { 'message' : 'No available data' } , status = status . HTTP_204_NO_CONTENT ) serializer = model_serializer ( instance , data ) if serializer . is_valid ( ) : serializer . update ( instance , serializer . validated_data ) return Response ( serializer . data , status = status . HTTP_200_OK ) else : return Response ( serializer . errors , status = status . HTTP_400_BAD_REQUEST )
short_docstring: Function that allows to perform a PUT to an endpoint without telling the pk value to the API.
short_docstring_tokens: Function that allows to perform a PUT to an endpoint without telling the pk value to the API .
comment: """
          Function that allows to perform a PUT to an endpoint without telling the pk value to the API.
  
          :param request: the request done to the API, needed to check the auth.
          :param model: the database model that is going to be searched.
          :param queryset: the queryset object that performs the query and gives back the data again.
          :param model_serializer: the serializer to serialize the json result file.
          :param key: the column name for the primary key.
          :param date_fields: list with the names of the fields that are dates that come from the frontend.
          :return: a response to the request with the results.
          """