def __get__(self, instance, owner):
        if instance is None:
            return self.expr

        if instance._relations in self._relation:
            return instance._relations[self._relation]

        self._related = self.func(instance)
        if isinstance(self._related, (Builder, QueryBuilder)):
            # Extra conditions on relation
            self._conditions = self._related
            self._related = self._related.get_model().__class__

        relation = self._get(instance)

        if self._conditions:
            # Setting extra conditions
            self._set_conditions(relation)

        relation = Wrapper(relation)

        instance._relations[self._relation] = relation

        return relation
dataset/ETHPy150Open sdispater/orator/orator/orm/utils.py/relation.__get__/swapped operands of `in`