The name could be confusing, but please let me explain:
I am currently storing a phone number with raw digits, for example 5554441234. Then in my template I was going to "format" the number into something like 555-444-1234.
I realized in Django localflavor, there is a US phone field number that checks if the string is in format XXX-XXX-XXXX.
So my question is: should I enter the phone number as raw digits, then format it in the template or enter the phone number in a formatted way using localflavor ?
If I choose the latter, will the format restriction XXX-XXX-XXXXeven apply to the level database APIor on the Django admin page?
source
share