~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to django/contrib/localflavor/uk/forms.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        # Put a single space before the incode (second part).
34
34
        postcode = self.space_regex.sub(r' \1', postcode)
35
35
        if not self.postcode_regex.search(postcode):
36
 
            raise ValidationError(self.default_error_messages['invalid'])
 
36
            raise ValidationError(self.error_messages['invalid'])
37
37
        return postcode
38
38
 
39
39
class UKCountySelect(Select):