#12017 closed (fixed)
UKPostcodeField doesn't shows provided custom "error_messages"
Reported by: | Vladimir Magamedov | Owned by: | |
---|---|---|---|
Component: | contrib.localflavor | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Here we have:
if not self.postcode_regex.search(postcode): raise ValidationError(self.default_error_messages['invalid'])
But should be:
if not self.postcode_regex.search(postcode): raise ValidationError(self.error_messages['invalid'])
Change History (5)
comment:1 by , 15 years ago
milestone: | → 1.2 |
---|---|
Version: | 1.1 → SVN |
comment:2 by , 15 years ago
Owner: | removed |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
(In [12044]) Fixed #12017 - Overriding the default error message of the UKPostcodeField works again.