django-mongoengine icon indicating copy to clipboard operation
django-mongoengine copied to clipboard

DocumentForm deletion within DocumentFormSet

Open m-vdb opened this issue 13 years ago • 0 comments

Not sure that the method used to check if a form has been deleted is right in this file. Django formset use the following test:

if form in formset.deleted_forms

In the case when data doesn't validate and is part of a deleted form, form.cleaned_data does not exist, and the way we test it can lead to problems (and in the worst case won't do everything we want...).

m-vdb avatar Sep 24 '12 16:09 m-vdb