mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user