def to_python(self, value):
        if value is None:
            return None
        # we should only allow whole numbers. so we coerce to float first, then
        # check to see if it's divisible by 1 without a remainder
        try:
            value = float(value)
        except ValueError:
            raise ValidationError('invalid_int', self)
        if 1 % value != 0:
            raise ValidationError('invalid_int', self)
        return int(value)
dataset/ETHPy150Open bendavis78/python-gitmodel/gitmodel/fields.py/IntegerField.to_python/swapped operands of `%`