Hi Folks,
Actullay I didn't understand the how this code is working,Please if you guys know about the convention,can you please give me some eaxmple with explanation.
models.py
from phonenumber_field.modelfields import PhoneNumber, PhoneNumberField
class PossiblePhoneNumberField(PhoneNumberField):
"""Less strict field for phone numbers written to database."""
default_validators = [validate_possible_number]
class Address(models.Model):
phone = PossiblePhoneNumberField(blank=True, default='')
class Meta:
ordering = ('pk', )
Thank you.
Regards,
Soumen