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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPUw6WawH8DfbxLewNi8gDE4GNpa0J84sF6X7TZKCsLwX6H%2BYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to