From 571b159dd35b27ff1598973aaa8c52085268fdb5 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sun, 5 Oct 2008 06:00:55 +0000 Subject: [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 --- tests/regressiontests/forms/localflavor/es.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/regressiontests/forms') 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): ... -- cgit v1.3