SyntaxFix
Write A Post
Hire A Developer
Questions
Another great way of solving it while using a model is by using the values() function.
values()
def returnResponse(date): response = ScheduledDate.objects.filter(date__startswith=date).values() return Response(response)