Model Formsets can_delete documentation lacking actual use example
|Reported by:||Owned by:||nobody|
|Severity:||Normal||Keywords:||can_delete, documentation, model formset|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Formsets can_delete online documentation provides no example of how to utilize this parameter to actually delete a form.
Something along the lines of:
for form in formset.deleted_forms: form.cleaned_data['id'].delete()
is all that is needed (if that is indeed the correct way to do it - I don't know because there is no documentation that I could find :) ).
Change History (13)
comment:1 Changed 5 years ago by
|Patch needs improvement:||unset|
comment:2 Changed 5 years ago by
|Summary:||Formsets can_delete documentation lacking actual use example → Model Formsets can_delete documentation lacking actual use example|
comment:5 Changed 5 years ago by
|Triage Stage:||Unreviewed → Accepted|