From 06482d4aa48d614f872043b6a6475d44cbdf2cb6 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 17 Dec 2007 08:58:29 +0000 Subject: [PATCH] Fixed #6136 -- Updated the localflavor documentation. Patch from Nick Efford. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6931 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/add_ons.txt | 6 +++++- docs/localflavor.txt | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/add_ons.txt b/docs/add_ons.txt index 137c357346..029e314f12 100644 --- a/docs/add_ons.txt +++ b/docs/add_ons.txt @@ -181,9 +181,13 @@ localflavor =========== A collection of various Django snippets that are useful only for a particular -country or culture. For example, ``django.contrib.localflavor.usa.forms`` +country or culture. For example, ``django.contrib.localflavor.us.forms`` contains a ``USZipCodeField`` that you can use to validate U.S. zip codes. +See the `localflavor documentation`_. + +.. _localflavor documentation: ../localflavor/ + markup ====== diff --git a/docs/localflavor.txt b/docs/localflavor.txt index 3eecba57e7..fe2d195f65 100644 --- a/docs/localflavor.txt +++ b/docs/localflavor.txt @@ -611,6 +611,16 @@ A form field that validates input as a UK postcode. The regular expression used is sourced from the schema for British Standard BS7666 address types at http://www.govtalk.gov.uk/gdsc/schemas/bs7666-v2-0.xsd. +UKCountySelect +-------------- + +A ``Select`` widget that uses a list of UK counties/regions as its choices. + +UKNationSelect +-------------- + +A ``Select`` widget that uses a list of UK nations as its choices. + United States of America (``django.contrib.localflavor.us``) ============================================================