#6362: Remove blank spaces with strip when validating the data
---------------------------------------------+------------------------------
          Reporter:  marinho                 |         Owner:  nobody           
            Status:  new                     |     Milestone:                   
         Component:  Forms                   |       Version:  SVN              
        Resolution:                          |      Keywords:  blank space strip
             Stage:  Design decision needed  |     Has_patch:  1                
        Needs_docs:  0                       |   Needs_tests:  0                
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by olau):

 * cc: [email protected] (added)

Comment:

 I sometimes got email from visitors claiming that the user registration
 form didn't work as it didn't accept their email address. Took quite a
 while to figure out what was wrong. Today I discovered the same problem
 with the shopping cart.

 Adding a {{{clean_email()}}} method to the form to strip the data doesn't
 work as it is run after {{{EmailField}}} does its check. So it's easy to
 do the wrong thing, and it's not straightforward to fix.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6362#comment:23>
Django <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