def apply(self, query, value):
        if value == '1':
            flt = {'%s' % self.column.name: None}
        else:
            flt = {'%s__ne' % self.column.name: None}
        return query.filter(**flt)
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/contrib/mongoengine/filters.py/FilterEmpty.apply/original