Browse files

Created django.contrib.localflavor, for country- and culture-specific…

… functionality. Moved django/newforms/extras/ into there

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Feb 15, 2007
1 parent b93614a commit 27b28616b405578d81fb8e6a4efdc73459c81a2b
No changes.
No changes.
@@ -139,6 +139,15 @@ See the `flatpages documentation`_.
.. _flatpages documentation: ../flatpages/
+**New in Django development version**
+A collection of various Django snippets that are useful only for a particular
+country or culture. For example, ``django.contrib.localflavor.usa.forms``
+contains a ``USZipCodeField`` that you can use to validate U.S. zip codes.
@@ -3225,7 +3225,7 @@
USZipCodeField validates that the data is either a five-digit U.S. zip code or
a zip+4.
->>> from django.newforms.extras.usa import USZipCodeField
+>>> from django.contrib.localflavor.usa.forms import USZipCodeField
>>> f = USZipCodeField()
>>> f.clean('60606')

0 comments on commit 27b2861

Please sign in to comment.