summaryrefslogtreecommitdiff
path: root/tests/regressiontests
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-05 06:00:55 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-05 06:00:55 +0000
commit571b159dd35b27ff1598973aaa8c52085268fdb5 (patch)
treefe00a21bd563b452106ec677b4fad72da4b39657 /tests/regressiontests
parent245399becbac4e3246d09fff268f99e3b8af7839 (diff)
[1.0.X] Fixed #9259 -- Fixed a validation error for Spanish identity card numbers.
Patch from Marc Garcia. Backport of r9129 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
-rw-r--r--tests/regressiontests/forms/localflavor/es.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/localflavor/es.py b/tests/regressiontests/forms/localflavor/es.py
index 66d18dd0fc..b92f62383d 100644
--- a/tests/regressiontests/forms/localflavor/es.py
+++ b/tests/regressiontests/forms/localflavor/es.py
@@ -157,6 +157,8 @@ ValidationError: [u'Invalid checksum for NIF.']
'X3287690R'
>>> f.clean('t-03287690r')
'T03287690R'
+>>> f.clean('P2907500I')
+'P2907500I'
>>> f.clean('X-03287690')
Traceback (most recent call last):
...