diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index c6b047c8c6..434e16a6d7 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1283,6 +1283,8 @@ templates used by the :class:`ModelAdmin` views: class ArticleAdmin(admin.ModelAdmin): def save_formset(self, request, form, formset, change): instances = formset.save(commit=False) + for obj in formset.deleted_objects: + obj.delete() for instance in instances: instance.user = request.user instance.save()