skip to Main Content

Unsupported lookup 'level' for DateTimeField or join on the field not permitted – Twitter API

this is my view.py @list_route(methods=["post"]) def created_in_range(self, request): response = {} data = request.POST start = dateutil.parser.parse(data['start']) end = dateutil.parser.parse(data['end']) page_no = data['page_no'] tweets = Tweet.get_created_in_range(start, end, int(page_no)) serializer = TweetSerializer(tweets, many= True) response["data"] = serializer.data return Response(response, status= status.HTTP_200_OK)…

VIEW QUESTION

Unsupported lookup 'level' for DateTimeField or join on the field not permitted – Twitter API

this is my view.py @list_route(methods=["post"]) def created_in_range(self, request): response = {} data = request.POST start = dateutil.parser.parse(data['start']) end = dateutil.parser.parse(data['end']) page_no = data['page_no'] tweets = Tweet.get_created_in_range(start, end, int(page_no)) serializer = TweetSerializer(tweets, many= True) response["data"] = serializer.data return Response(response, status= status.HTTP_200_OK)…

VIEW QUESTION
Back To Top
Search