def is_valid_filter(self, filter):
        return isinstance(filter, BasePyMongoFilter)
Validate if it is valid MongoEngine filter
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/pymongo/view.py/ModelView.is_valid_filter