

def apply(self, query, value):
    (start, end) = value
    flt = {
        ('%s__gte' % self.column.name): start,
        ('%s__lte' % self.column.name): end,
    }
    return query.filter(**flt)

dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/contrib/mongoengine/filters.py DateTimeBetweenFilter.apply/original