Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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 Vladimir Magamedov, 15 years ago

milestone: 1.2
Version: 1.1SVN

comment:2 by Jacob, 15 years ago

Owner: Jacob removed

comment:3 by Jannis Leidel, 15 years ago

Resolution: fixed
Status: newclosed

(In [12044]) Fixed #12017 - Overriding the default error message of the UKPostcodeField works again.

comment:4 by Jannis Leidel, 15 years ago

(In [12250]) [1.1.X] Fixed #12017 - Overriding the default error message of the UKPostcodeField works again. Backport of r12044 and r12249.

comment:5 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top