Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 27b28616b405578d81fb8e6a4efdc73459c81a2b 1 parent b93614a
Adrian Holovaty authored
0  django/newforms/extras/usa.py → django/contrib/localflavor/usa/forms.py
File renamed without changes
9  docs/add_ons.txt
@@ -139,6 +139,15 @@ See the `flatpages documentation`_.
139 139
 
140 140
 .. _flatpages documentation: ../flatpages/
141 141
 
  142
+localflavor
  143
+===========
  144
+
  145
+**New in Django development version**
  146
+
  147
+A collection of various Django snippets that are useful only for a particular
  148
+country or culture. For example, ``django.contrib.localflavor.usa.forms``
  149
+contains a ``USZipCodeField`` that you can use to validate U.S. zip codes.
  150
+
142 151
 markup
143 152
 ======
144 153
 
0  localflavor/__init__.py b/django/contrib/localflavor/__init__.py
No changes.
0  localflavor/usa/__init__.py b/django/contrib/localflavor/usa/__init__.py
No changes.
2  tests/regressiontests/forms/tests.py
@@ -3225,7 +3225,7 @@
3225 3225
 
3226 3226
 USZipCodeField validates that the data is either a five-digit U.S. zip code or
3227 3227
 a zip+4.
3228  
->>> from django.newforms.extras.usa import USZipCodeField
  3228
+>>> from django.contrib.localflavor.usa.forms import USZipCodeField
3229 3229
 >>> f = USZipCodeField()
3230 3230
 >>> f.clean('60606')
3231 3231
 u'60606'

0 notes on commit 27b2861

Please sign in to comment.
Something went wrong with that request. Please try again.