def to_python(self, value):
        if value is None:
            return value
        try:
            return int(value)
        except (TypeError, __HOLE__):
            raise exceptions.ValidationError(self.error_messages['invalid'])
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/db/models/fields/__init__.py/AutoField.to_python