mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Fixed #8229: Added handling for a special case in the validation of Spanish ID numbers. Thanks to Marc Garcia for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
77c949289e
commit
cbcc415934
2 changed files with 4 additions and 2 deletions
|
|
@ -167,6 +167,8 @@ Traceback (most recent call last):
|
|||
ValidationError: [u'Invalid checksum for NIE.']
|
||||
>>> f.clean('B38790911')
|
||||
'B38790911'
|
||||
>>> f.clean('B31234560')
|
||||
'B31234560'
|
||||
>>> f.clean('B-3879091A')
|
||||
'B3879091A'
|
||||
>>> f.clean('B 38790917')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue