san4ezy / django_softdelete

MIT License
79 stars 21 forks source link

Fix issue in delete method. #26

Closed vardgeskarapetyan2 closed 9 months ago

vardgeskarapetyan2 commented 9 months ago

Previously, when encountering a ProtectedError in the delete method, only one protected object was being returned with an error message. However, according to Django's delete behavior, all protected objects should be returned with a message. This commit addresses this issue by modifying the delete method to return all protected objects along with the appropriate message. Dear @san4ezy, pls review the pull request, thank you!

san4ezy commented 9 months ago

Thank you @vardgeskarapetyan2 ! This code is already in latest version: 1.0.12