@@ -0,0 +1,476 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Aimport re%0A%0Afrom django.core import validators%0Afrom django.utils.deconstruct import deconstructible%0Afrom django.utils.translation import ugettext_lazy as _%0A%0A@deconstructible%0Aclass CURPValidator(validators.RegexValidator):%0A%09regex = re.compile(r'%5E(%5BA-Z%5D%5BA,E,I,O,U,X%5D%5BA-Z%5D%7B2%7D%5B0-9%5D%7B2%7D%5B0-1%5D%5B0-9%5D%5B0-3%5D%5B0-9%5D%5BM,H%5D%5BA-Z%5D%7B2%7D%5BB,C,D,F,G,H,J,K,L,M,N,%C3%91,P,Q,R,S,T,V,W,X,Y,Z%5D%7B3%7D%5B0-9,A-Z%5D%5B0-9%5D)$', re.IGNORECASE)%0A%09message = _('Enter a valid CURP.')

Add class validator for CURP field