Closed epicserve closed 9 months ago
Thank you @epicserve ! Yep, good catch. I'll try to add this functionality with the very next update.
Hi @epicserve , the latest version of this lib is already can use on_delete
option as well. You could use it as a regular Django model. But pay attention, this functionality works only if all related models are SoftDeleteModel
.
I close this issue. But If you still have some questions, feel free to open it again.
It would be good to honor each related model's
on_delete
setting rather than a globalon_delete
setting. For example, if you had the following models.If you tried to delete the author and the author was used in a book, it shouldn't allow the deleting because there are models that use that author.