mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
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
This commit is contained in:
parent
b93614ada6
commit
27b28616b4
5 changed files with 10 additions and 1 deletions
|
|
@ -3225,7 +3225,7 @@ True
|
|||
|
||||
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')
|
||||
u'60606'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue