[Answered ]-Django REST framework – filtering against query params with date and string parameter

1👍

your Destination model has property name therefore add another filter criteria name in filter query

def _factory(self):
        self._schedules = Schedules.objects.filter(bus__bus_company=self._bus_company ,travel_date_time__date=self._date ,bus_company_route__route__destination__name=self._destination)

Leave a comment