def __set__(self, instance, obj):
        if self.field.null and obj is None:
            setattr(instance, self.field_column, None)
            setattr(instance, self.cache_name, None)
        else:
            if not isinstance(obj, Model):
                setattr(instance, self.field_column, obj)
            else:
                assert isinstance(obj, self.to), (obj, self.field.name) % "Cannot assign %s to %s, invalid type"
                setattr(instance, self.field_column, obj.get_pk())
                setattr(instance, self.cache_name, obj)
dataset/ETHPy150Open kuri65536/python-for-android/sl4atools/fullscreenwrapper2/examples/calcount2_example/peewee.py/ForeignRelatedObject.__set__/swapped operands of `%`