|
|
@@ -274,9 +274,9 @@ class AbstractAddress(models.Model):
|
|
274
|
274
|
|
|
275
|
275
|
# Validate postcode against regext for the country if available
|
|
276
|
276
|
if regex and not re.match(regex, postcode):
|
|
277
|
|
- msg = _("'%(postcode)s' is not a valid postcode for %(country)s") % {
|
|
278
|
|
- 'postcode': self.postcode,
|
|
279
|
|
- 'country': self.country.printable_name}
|
|
|
277
|
+ msg = _("The postcode '%(postcode)s' is not valid "
|
|
|
278
|
+ "for the country selected") % {
|
|
|
279
|
+ 'postcode': self.postcode}
|
|
280
|
280
|
raise exceptions.ValidationError(msg)
|
|
281
|
281
|
|
|
282
|
282
|
def _update_search_text(self):
|