Ticket #8786: 8786-1.diff

File 8786-1.diff, 1.2 KB (added by Matt McClanahan, 16 years ago)
  • ref/contrib/localflavor.txt

     
    650650    A form ``Select`` widget that uses a list of U.S. states/territories as its
    651651    choices.
    652652
     653.. class:: us.models.PhoneNumberField
     654
     655    A :class:`CharField` that checks that the value is a valid U.S.A.-style phone
     656    number (in the format ``XXX-XXX-XXXX``).
     657
    653658.. class:: us.models.USStateField
    654659
    655660    A model field that forms represent as a ``forms.USStateField`` field and
  • ref/models/fields.txt

     
    617617this instead of a :class:`BooleanField` with ``null=True``. The admin represents
    618618this as a ``<select>`` box with "Unknown", "Yes" and "No" choices.
    619619
    620 ``PhoneNumberField``
    621 --------------------
    622 
    623 .. class:: PhoneNumberField([**options])
    624 
    625 A :class:`CharField` that checks that the value is a valid U.S.A.-style phone
    626 number (in the format ``XXX-XXX-XXXX``).
    627 
    628620``PositiveIntegerField``
    629621------------------------
    630622
Back to Top