Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanfoulis committed Aug 31, 2011
0 parents commit f26c4f4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.rst
@@ -0,0 +1,32 @@
========================
django-phonenumber-field
========================


A international phone number field for django that uses http://pypi.python.org/pypi/phonenumbers for validation .

Installation
============

::

pip install django-phonenumber-field


Basic usage
===========

Use it like any regular model field::

class MyModel(models.Model):
name = models.CharField(max_length=255)
phone_number = PhoneNumberField()

PhoneNumberField will always represent the number as a string of an international phonenumber in the database. E.g
`+41524204242`.

The object returned is not just a plain String. It is a PhoneNumber object. Currently it is necessary to always use
the international format when entering data.

Future versions of django-phonenumber-field may provide custom special widgets that support more custom formatting.

0 comments on commit f26c4f4

Please sign in to comment.