def get_queryset(self):
        """Alters queryset to limit by date range."""
        start_date = self.request.GET.get(self.start_date_key, None)
        end_date = self.request.GET.get(self.end_date_key, None)
        query_kwargs = {}
        if start_date:
            start_date = make_aware(
                datetime.strptime(start_date, self.datetime_format),
                get_current_timezone()
            )
            query_kwargs['%s__gte' % self.date_range_field] = start_date
        if end_date:
            end_date = make_aware(
                datetime.strptime(end_date, self.datetime_format),
                get_current_timezone()
            )
            query_kwargs['%s__lte' % self.date_range_field] = end_date
        return super(
            DateTimeRangeListMixin, self).get_queryset().filter(**query_kwargs)
dataset/ETHPy150Open ofa/connect/open_connect/connect_core/utils/mixins.py/DateTimeRangeListMixin.get_queryset/original