From c7a10b677d51d5f76491011702e08588c9c63777 Mon Sep 17 00:00:00 2001 From: James Bennett Date: Tue, 2 Sep 2008 00:26:28 +0000 Subject: [PATCH] Fixed #8786: Moved phone number field docs to localflavor git-svn-id: http://code.djangoproject.com/svn/django/trunk@8830 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/localflavor.txt | 5 +++++ docs/ref/models/fields.txt | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt index 25b60de2d0..014ef71adc 100644 --- a/docs/ref/contrib/localflavor.txt +++ b/docs/ref/contrib/localflavor.txt @@ -650,6 +650,11 @@ United States of America (``us``) A form ``Select`` widget that uses a list of U.S. states/territories as its 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 A model field that forms represent as a ``forms.USStateField`` field and diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 5f656da66a..f48d5226b5 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -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 as a ``