#5335: newforms: Custom validation.
-------------------------------------------------------+--------------------
          Reporter:  Thomas Güttler <[email protected]>  |         Owner:  
nobody
            Status:  reopened                          |     Milestone:        
         Component:  Forms                             |       Version:  SVN   
        Resolution:                                    |      Keywords:        
             Stage:  Design decision needed            |     Has_patch:  1     
        Needs_docs:  0                                 |   Needs_tests:  0     
Needs_better_patch:  0                                 |  
-------------------------------------------------------+--------------------
Comment (by Alex):

 Perhaps a better method would be to have the ErrorDict be a defaultdict,
 that way users can do form._errors['field'].append('error message')
 without worrying about whether or not field is in the dict or not.

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