original_docstring: 
          Function that allows to POST new data to the database.
  
          :param request: the request done to the API, needed to check the auth.
          :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 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 POST new data to the database.
docstring_tokens: Function that allows to POST new data to the database .
code: def post_list(self, request, queryset, model_serializer, date_fields: List[str] = None):
          """
          Function that allows to POST new data to the database.
  
          :param request: the request done to the API, needed to check the auth.
          :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 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)
          serializer = model_serializer(data=data)
          if serializer.is_valid():
              serializer.save()
              return Response(serializer.data, status=status.HTTP_201_CREATED)
          else:
              return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
code_tokens: def post_list ( self , request , queryset , model_serializer , date_fields : List [ str ] = None ) : data = JSONParser ( ) . parse ( request ) serializer = model_serializer ( data = data ) if serializer . is_valid ( ) : serializer . save ( ) return Response ( serializer . data , status = status . HTTP_201_CREATED ) else : return Response ( serializer . errors , status = status . HTTP_400_BAD_REQUEST )
short_docstring: Function that allows to POST new data to the database.
short_docstring_tokens: Function that allows to POST new data to the database .
comment: """
          Function that allows to POST new data to the database.
  
          :param request: the request done to the API, needed to check the auth.
          :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 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.
          """