#10204: Validation fails in spanish localflavor ESIdentityCardNumberField
-------------------------------------------------+--------------------------
Reporter: meaksh | Owner: meaksh
Status: assigned | Milestone:
Component: django.contrib.localflavor | Version: SVN
Resolution: | Keywords:
ESIdentityCardNumberField, NIE
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------------+--------------------------
Comment (by anonymous):
Excuse me but I didn't know how to notify this.
I am using ESIdentityCardNumberField in django 1.2.
cifs starting with "J" should be valid but none passes validation, I get:
'Please enter a valid NIF, NIE, or CIF.'
In fact it surely fails with cifs starting by J,R,U,V,W according to
newest normative.
See here:
http://www.boe.es/aeboe/consultas/bases_datos/doc.php?id=BOE-A-2008-3580
I suppose it's just a matter of changing:
self.cif_types = 'ABCDEFGHKLMNPQS' to self.cif_types =
'ABCDEFGHJKLMNPQRSUVW'
--
Ticket URL: <http://code.djangoproject.com/ticket/10204#comment:12>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.