#5670: UKPostcodeField made more forgiving of input format
---------------------------------+------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody                    
  Status:  new                   |   Component:  django.contrib.localflavor
 Version:  SVN                   |    Keywords:  uk postcode               
   Stage:  Unreviewed            |   Has_patch:  1                         
---------------------------------+------------------------------------------
 The UKPostcodeField in django.contrib.localflavor.uk does a good job of
 checking a UK postcode is valid.  However, it requires the letters to be
 uppercase and a space between the two parts.  I think that's a bit too
 strict.

 Here is a version that is more forgiving.  It uppercases the string and
 inserts the space in the correct place before validation.

 Patch and tests attached.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5670>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to