beda-software / drf-writable-nested

Writable nested model serializer for Django REST Framework
Other
1.07k stars 116 forks source link

Need delete() model method to be called #102

Closed ehutch79 closed 3 years ago

ehutch79 commented 4 years ago

I have nested models which are soft deleted. At the moment, the delete_reverse_relations_if_need method uses a bulk delete, which no option for calling each entries delete() method, which is required for me to mark the row as deleted, while retaining the data for 'undelteing' or auditing purposes.

ruscoder commented 3 years ago

Related #143

ruscoder commented 3 years ago

Use perform_nested_delete for this purpose