Skip to content

Commit

Permalink
Fixed #8786: Moved phone number field docs to localflavor
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ubernostrum committed Sep 2, 2008
1 parent 1b615ac commit c7a10b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions docs/ref/contrib/localflavor.txt
Expand Up @@ -650,6 +650,11 @@ United States of America (``us``)
A form ``Select`` widget that uses a list of U.S. states/territories as its A form ``Select`` widget that uses a list of U.S. states/territories as its
choices. choices.


.. class:: us.models.PhoneNumberField

A :class:`CharField` that checks that the value is a valid U.S.A.-style phone
number (in the format ``XXX-XXX-XXXX``).

.. class:: us.models.USStateField .. class:: us.models.USStateField


A model field that forms represent as a ``forms.USStateField`` field and A model field that forms represent as a ``forms.USStateField`` field and
Expand Down
8 changes: 0 additions & 8 deletions docs/ref/models/fields.txt
Expand Up @@ -617,14 +617,6 @@ Like a :class:`BooleanField`, but allows ``NULL`` as one of the options. Use
this instead of a :class:`BooleanField` with ``null=True``. The admin represents this instead of a :class:`BooleanField` with ``null=True``. The admin represents
this as a ``<select>`` box with "Unknown", "Yes" and "No" choices. this as a ``<select>`` box with "Unknown", "Yes" and "No" choices.


``PhoneNumberField``
--------------------

.. class:: PhoneNumberField([**options])

A :class:`CharField` that checks that the value is a valid U.S.A.-style phone
number (in the format ``XXX-XXX-XXXX``).

``PositiveIntegerField`` ``PositiveIntegerField``
------------------------ ------------------------


Expand Down

0 comments on commit c7a10b6

Please sign in to comment.