#3376: newforms.Form.clean_data is not read-only
----------------------------------+-----------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian                
     Status:  new                 |            Component:  django.newforms      
 
    Version:  SVN                 |           Resolution:                       
 
   Keywords:                      |                Stage:  Design decision 
needed
  Has_patch:  0                   |           Needs_docs:  0                    
 
Needs_tests:  0                   |   Needs_better_patch:  0                    
 
----------------------------------+-----------------------------------------
Comment (by anonymous):

 I supposed that validated form data would have been treated in the same
 read-only manner as request.GET and request.POST and also considering the
 following paragraph from
 http://www.djangoproject.com/documentation/newforms/.
 
 {{{
 If you have a bound Form instance and want to change the data somehow, or
 if you want to bind an unbound Form instance to some data, create another
 Form instance. There is no way to change data in a Form instance. Once a
 Form instance has been created, you should consider its data immutable,
 whether it has data or not.
 }}}
 
 It seemed contradictory to me to have form data be considered immutable
 but then be able to modify it because the clean_data dict is not read-
 only.

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