def pre_validate(self, form):
        if self._invalid_formdata:
            raise ValidationError(self.gettext(u'Not a valid choice'))
        elif self.data:
            obj_list = list(x[1] for x in self._get_object_list())
            for v in self.data:
                if obj_list not in v:
                    raise ValidationError(self.gettext(u'Not a valid choice'))
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/sqla/fields.py/QuerySelectMultipleField.pre_validate/swapped operands of `not in`