Closed agustin-jimenez closed 3 years ago
I would look at PhoneNumber.cleaned
, which will give you a number expressed as +13335556666
. From there, you can take characters 2-4 to extract the area code part -> my_number.cleaned[2:5]
.
Thank you a lot!
Hi! I want some help. I need getting the area code from a defined PhoneField() on my model. Is it possible?