Add a soft delete method to a custom QuerySet, then use that as a custom
Manager for your model.
https://docs.djangoproject.com/en/4.0/topics/db/managers/#creating-a-manager-with-queryset-methods
On June 16, 2022 5:13:29 AM CDT, Sencer Hamarat wrote:
>Hi,
>
>The models delete methods
Hi,
The models delete methods overridden by default and has a soft delete
mechanizm.
I need to add bulk soft delete to the application. I can achieve this with
iterating over objects to call the soft delete method. But the actual need
is, soft delete objects filtered by id in bulk way.
Can I do
2 matches
Mail list logo