Code

Ticket #8786: 8786-1.diff

File 8786-1.diff, 1.2 KB (added by mattmcc, 6 years ago)
Line 
1Index: ref/contrib/localflavor.txt
2===================================================================
3--- ref/contrib/localflavor.txt (revision 8828)
4+++ ref/contrib/localflavor.txt (working copy)
5@@ -650,6 +650,11 @@
6     A form ``Select`` widget that uses a list of U.S. states/territories as its
7     choices.
8 
9+.. class:: us.models.PhoneNumberField
10+
11+    A :class:`CharField` that checks that the value is a valid U.S.A.-style phone
12+    number (in the format ``XXX-XXX-XXXX``).
13+
14 .. class:: us.models.USStateField
15 
16     A model field that forms represent as a ``forms.USStateField`` field and
17Index: ref/models/fields.txt
18===================================================================
19--- ref/models/fields.txt       (revision 8828)
20+++ ref/models/fields.txt       (working copy)
21@@ -617,14 +617,6 @@
22 this instead of a :class:`BooleanField` with ``null=True``. The admin represents
23 this as a ``<select>`` box with "Unknown", "Yes" and "No" choices.
24 
25-``PhoneNumberField``
26---------------------
27-
28-.. class:: PhoneNumberField([**options])
29-
30-A :class:`CharField` that checks that the value is a valid U.S.A.-style phone
31-number (in the format ``XXX-XXX-XXXX``).
32-
33 ``PositiveIntegerField``
34 ------------------------
35