summaryrefslogtreecommitdiff
path: root/django/contrib
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-01-17 22:51:25 +0000
committerJannis Leidel <jannis@leidel.info>2010-01-17 22:51:25 +0000
commitd1e7fdea3fe3e4dd28301151ef4e83fe2a2d0a1c (patch)
treebd1632f2000e8f4e3fb5af15e3a74ffa08cd96cc /django/contrib
parentabea4e6ee3e87e384fb36cbdad0f7fb0b836dd49 (diff)
[1.1.X] Fixed #12017 - Overriding the default error message of the UKPostcodeField works again. Backport of r12044 and r12249.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib')
-rw-r--r--django/contrib/localflavor/uk/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/localflavor/uk/forms.py b/django/contrib/localflavor/uk/forms.py
index 7df736444a..aafe9734db 100644
--- a/django/contrib/localflavor/uk/forms.py
+++ b/django/contrib/localflavor/uk/forms.py
@@ -33,7 +33,7 @@ class UKPostcodeField(CharField):
# Put a single space before the incode (second part).
postcode = self.space_regex.sub(r' \1', postcode)
if not self.postcode_regex.search(postcode):
- raise ValidationError(self.default_error_messages['invalid'])
+ raise ValidationError(self.error_messages['invalid'])
return postcode
class UKCountySelect(Select):