﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12146	Canada localflavor: postal code validation too lax	Paul Schreiber	Karen Tracey	"In the Canada localflavor package,  postal code validation is too lax. As of Django 1.1.1, we have this:
{{{
     def __init__(self, *args, **kwargs):
         super(CAPostalCodeField, self).__init__(r'^[ABCEGHJKLMNPRSTVXYZ]\d[A-Z] \d[A-Z]\d$',
}}}

However, no postal code includes the letters D, F, I, O, Q, or U.
The letters W and Z are used, but are not currently used as the first letter.
http://en.wikipedia.org/wiki/Canadian_postal_code#Number_of_possible_postal_codes

I can't find this on the Canada Post web site, but it's documented in many places.
You want something like this:
{{{
     def __init__(self, *args, **kwargs):
         super(CAPostalCodeField, self).__init__(r'^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] \d[ABCEGHJKLMNPRSTVWXYZ]\d$',
}}}"		closed	contrib.localflavor	1.1		fixed	canada postal code		Unreviewed	1	0	0	0	0	0
