diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-01-01 21:31:47 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-01-01 21:31:47 +0000 |
| commit | 3825bb2350d9547622a9d1201ced9743e21783ee (patch) | |
| tree | ee4644397518fb9d76f3c121d183dcb3054a0f87 /docs | |
| parent | f2d0ae93f859e31d9591f4b4b35890b320e9129c (diff) | |
Fixed #10736 - Added Uruguayan (uy) localflavor. Thanks to Gonzalo Saavedra for providing the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/localflavor.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt index 660b7c623b..1eafa9fac1 100644 --- a/docs/ref/contrib/localflavor.txt +++ b/docs/ref/contrib/localflavor.txt @@ -65,6 +65,7 @@ Countries currently supported by :mod:`~django.contrib.localflavor` are: * Switzerland_ * `United Kingdom`_ * `United States of America`_ + * Uruguay_ The ``django.contrib.localflavor`` package also includes a ``generic`` subpackage, containing useful code that is not specific to one particular country or culture. @@ -106,6 +107,7 @@ Here's an example of how to use them:: .. _Switzerland: `Switzerland (ch)`_ .. _United Kingdom: `United Kingdom (uk)`_ .. _United States of America: `United States of America (us)`_ +.. _Uruguay: `Uruguay (uy)`_ Adding flavors ============== @@ -738,3 +740,15 @@ United States of America (``us``) A model field that forms represent as a ``forms.USStateField`` field and stores the two-letter U.S. state abbreviation in the database. + +Uruguay (``uy``) +================ + +.. class:: uy.forms.UYCIField + + A field that validates Uruguayan 'Cedula de identidad' (CI) numbers. + +.. class:: uy.forms.UYDepartamentSelect + + A ``Select`` widget that uses a list of Uruguayan departaments as its + choices. |
