#8171: Invalid formset when form is missing from POST data
-------------------------------------------------------+--------------------
          Reporter:  James Chua <[email protected]>  |         Owner:  
brosner 
            Status:  reopened                          |     Milestone:  1.2    
 
         Component:  Forms                             |       Version:  SVN    
 
        Resolution:                                    |      Keywords:  
formsets
             Stage:  Accepted                          |     Has_patch:  0      
 
        Needs_docs:  0                                 |   Needs_tests:  0      
 
Needs_better_patch:  0                                 |  
-------------------------------------------------------+--------------------
Comment (by anonymous):

 Replying to [comment:6 brosner]:
 > Ok. I have thought this through and got input from Joseph. We have
 concluded, don't do this. It is expected that all forms are present in the
 POST data regardless. If you are using Javascript to provide some
 interface where the user can add/remove extra/initial data forms then you
 need to properly ensure the ones removed are properly marked for deletion
 via ```choices-N-DELETE```. I will leave this open for the pending
 documentation change indicating this.


 I absolutely agree. But missing forms should be threated as not valid,
 because even form variables aren't sended. See it in James code:

 [{'votes': 100, 'choice': u'Calexico'}, {}, {}]

 That's where problem is. It's probably not clear in James Chua
 description. To more clear see my 8th comment comment:8

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