

@classmethod
def from_string(cls, phone_number, region=None):
    phone_number_obj = cls()
    if (region is None):
        region = getattr(settings, 'PHONENUMBER_DEFAULT_REGION', None)
    phonenumbers.parse(number=phone_number, region=region, keep_raw_input=True, numobj=phone_number_obj)
    return phone_number_obj

dataset/ETHPy150Open stefanfoulis/django-phonenumber-field/phonenumber_field/phonenumber.py PhoneNumber.from_string/original