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

Create custom api to get filterable attribute for specific category in magento 2

I am creating api to get filterable attribute for specific category in magento 2. We see in category page for layered navigation. I want to achieve exact same data in api. $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $filterableAttributes = $objectManager->get(MagentoCatalogModelLayerCategoryFilterableAttributeList::class); $appState = $objectManager->get(MagentoFrameworkAppState::class);…

VIEW QUESTION
Back To Top
Search