On Tue, Mar 31, 2009 at 1:32 PM, Vinicius Mendes <vbmen...@gmail.com> wrote:
> In the ticket description, the user says that he is using > inlineformset_factory, so do I. The changeset only fixes the FormSet. > ModelFormSet and InlineFormSet are still bugged. In the methods > save_new_objects and save_existing_objects, you have to check if the form is > marked for deletion, if so, delete the object or don't save it (in case of > saving new objects). > > The framework is checking if the form is marked for deletion in > cleaned_data, but the cleaned_data isn't created for invalid forms. I wrote > a patch to solve this problem and was thinking about reopening the ticket, > but always, when somebody reopens a ticket in the TRAC, commiters ask him to > send an e-mail to de developers list. > > What do you think about reopening the ticket? > > -------- > > Vinícius Mendes > Engenheiro de Computação > Meio Código - A peça que faltava para o seu código! > URL http://www.meiocodigo.com > > > > > Look at line 216 of formsets.py it specifically makes sure not to interogate cleaned_data. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---