Ticket #12146: ca_localflavor.diff

File ca_localflavor.diff, 623 bytes (added by Mark Lavin, 15 years ago)

Patch for new regular expression

  • django/contrib/localflavor/ca/forms.py

     
    1818    }
    1919
    2020    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$',
    2222            max_length=None, min_length=None, *args, **kwargs)
    2323
    2424class CAPhoneNumberField(Field):
Back to Top