Mexican-specific form helpers.
This is the list of inconvenient words according to the Anexo 2 of the document described in the next link: http://portal.veracruz.gob.mx/pls/portal/url/ITEM/444112558A57C6E0E040A8C02E00695C
A field that validates a Mexican Clave Única de Registro de Población.
The CURP is integrated by a juxtaposition of characters following the next pattern:
Index Format Accepted Characters 1 X Any letter 2 X Any vowel 3-4 XX Any letter 5-10 YYMMDD Any valid date 11 X Either H or M, depending on the person’s gender 12-13 XX Any valid acronym for a state in Mexico 14-16 XXX Any consonant 17 X Any number between 0 and 9 or any letter 18 X Any number between 0 and 9
A form field that validates a Mexican Registro Federal de Contribuyentes for either Persona física or Persona moral.
The Persona física RFC string is integrated by a juxtaposition of characters following the next pattern:
Index Format Accepted Characters 1 X Any letter 2 X Any vowel 3-4 XX Any letter 5-10 YYMMDD Any valid date 11-12 XX Any letter or number between 0 and 9 13 X Any digit between 0 and 9 or the letter A
The Persona moral RFC string is integrated by a juxtaposition of characters following the next pattern:
Index Format Accepted Characters 1-3 XXX Any letter including & and Ñ chars 4-9 YYMMDD Any valid date 10-11 XX Any letter or number between 0 and 9 12 X Any number between 0 and 9 or the letter A
A field that validates a Mexican Social Security Number.
The Social Security Number is integrated by a juxtaposition of digits following the next pattern:
Index | Required numbers |
---|---|
1-2 | The number of the branch office where the Social Security Number was designated. |
3-4 | The year of inscription to the Social Security. |
5-6 | The year of birth of the Social Security Number owner. |
7-10 | The progressive number of procedure for the IMSS. (This digit is provided exclusively by the Institute as it regards the Folio number of such procedure). |
11 | The verification digit. |
A Select widget that uses a list of Mexican states as its choices.
A form field that accepts a Mexican Zip Code.
This is the list of inconvenient words according to the Anexo IV of the document described in the next link: http://www.sisi.org.mx/jspsi/documentos/2005/seguimiento/06101/0610100162005_065.doc
A model field that forms represent as a forms.MXCURPField field and stores the value of a valid Mexican CURP.
A model field that forms represent as a forms.MXRFCField field and stores the value of a valid Mexican RFC.
A model field that forms represent as a forms.MXSocialSecurityNumberField field and stores the value of a valid Mexican Social Security Number.
All 31 states, plus the Distrito Federal.