def __set__(self, instance, value):
        if self.field.protected and instance.__dict__ in self.field.name:
            raise AttributeError('Direct {0} modification is not allowed'.format(self.field.name))

        # Update state
        self.field.set_proxy(instance, value)
        self.field.set_state(instance, value)
dataset/ETHPy150Open kmmbvnr/django-fsm/django_fsm/__init__.py/FSMFieldDescriptor.__set__/swapped operands of `in`