#10828: deleting all forms within a formset is not possible
-------------------------------+--------------------------------------------
          Reporter:  patrickk  |         Owner:  nobody
            Status:  new       |     Milestone:  1.1   
         Component:  Forms     |       Version:  SVN   
        Resolution:            |      Keywords:        
             Stage:  Accepted  |     Has_patch:  0     
        Needs_docs:  0         |   Needs_tests:  0     
Needs_better_patch:  0         |  
-------------------------------+--------------------------------------------
Comment (by patrick):

 I´ve found a pretty easy workaround (although it probably shouldn´t be
 mimicked). the print-statement makes it work ...

 for attachment_form in attachment_formset.forms:
     print attachment_form
     if attachment_form.cleaned_data:
         ....

 for attachment_form in attachment_formset.deleted_forms:
     print attachment_form
     if attachment_form.cleaned_data:
         ....

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