def to_internal_value(self, data):
        try:
            return int(data)
        except __HOLE__:
            self.fail('not_a_number')
dataset/ETHPy150Open uppsaladatavetare/foobar-api/src/foobar/rest/fields.py/IntEnumField.to_internal_value