Ticket #12146: ca_localflavor.diff
File ca_localflavor.diff, 623 bytes (added by , 15 years ago) |
---|
-
django/contrib/localflavor/ca/forms.py
18 18 } 19 19 20 20 def __init__(self, *args, **kwargs): 21 super(CAPostalCodeField, self).__init__(r'^[ABCEGHJKLMNPRSTVXYZ]\d[A-Z] \d[A-Z]\d$',21 super(CAPostalCodeField, self).__init__(r'^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] \d[ABCEGHJKLMNPRSTVWXYZ]\d$', 22 22 max_length=None, min_length=None, *args, **kwargs) 23 23 24 24 class CAPhoneNumberField(Field):