def apply(self, query, value):
        start, end = value
        return query.filter(Q(**{'%s__not__gte' % self.column.name: start}) |
                            Q(**{'%s__not__lte' % self.column.name: end}))
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/contrib/mongoengine/filters.py/DateTimeNotBetweenFilter.apply/original