def get_objects(self):
        """ Returns a set of objects set for deletion. List of objects is
        retrived from a HTTP POST list called ``objects``.

        Returns
        -------
        set
            Set of objects to delete
        """

        try:
            return self._objs
        except AttributeError:

            objects = set()
            model = self.get_model()

            # Values to use in object lookup, could id for example or slug etc
            vals = request.values.getlist('objects')

            try:
                field = getattr(model, self.get_lookup_field())
            except __HOLE__:
                raise AttributeError('Lookup field does not exist')

            for obj in model.query.filter(field.in_(vals)).all():
                objects.add(obj)

            self._objs = objects
            return objects
dataset/ETHPy150Open thisissoon/Flask-Velox/flask_velox/mixins/sqla/delete.py/MultiDeleteObjectMixin.get_objects